public class FileBuffer extends Buffer
position, STOPCHARSJSON, STOPCHARSXML, STOPCHARSXMLENDSPACE| Constructor and Description |
|---|
FileBuffer() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static boolean |
deleteFile(java.lang.String fileName) |
boolean |
exist() |
byte |
getByte() |
char |
getChar() |
char |
getCurrentChar() |
int |
length() |
char |
nextClean(boolean currentValid)
Get the next char in the string, skipping whitespace.
|
java.lang.String |
toString() |
FileBuffer |
withFile(java.io.File file) |
FileBuffer |
withFile(java.io.File file,
int cache) |
FileBuffer |
withFile(java.lang.String fileName) |
FileBuffer |
withLookAHead(char current)
Add lookAHead to Buffer
|
FileBuffer |
withLookAHead(java.lang.CharSequence lookahead)
Add lookAHead to Buffer
|
boolean |
write(java.lang.CharSequence data,
boolean append) |
static boolean |
writeFile(java.lang.String fileName,
java.lang.CharSequence data) |
static boolean |
writeFile(java.lang.String fileName,
java.lang.CharSequence data,
boolean appendData) |
array, checkValues, getDouble, getFloat, getInt, getLong, getShort, getString, getStringList, isEmpty, isEnd, nextString, nextString, nextToken, nextValue, nextValue, parseString, position, readLine, remaining, skip, skip, skipChar, skipTo, skipTo, splitStringspublic FileBuffer withFile(java.lang.String fileName)
public FileBuffer withFile(java.io.File file, int cache)
public FileBuffer withFile(java.io.File file)
public int length()
public boolean exist()
public char getChar()
public java.lang.String toString()
toString in class java.lang.Objectpublic FileBuffer withLookAHead(java.lang.CharSequence lookahead)
BufferItemlookahead - The String for look A Head String. For Simple Buffer change position back to the length of String or Save the String.public FileBuffer withLookAHead(char current)
BufferItemcurrent - The next Characterpublic char nextClean(boolean currentValid)
BufferItemnextClean in interface BufferItemnextClean in class BuffercurrentValid - is the current char also a valid characterpublic char getCurrentChar()
public byte getByte()
getByte in interface BufferItemgetByte in class Bufferpublic void close()
public static final boolean writeFile(java.lang.String fileName,
java.lang.CharSequence data,
boolean appendData)
public static final boolean writeFile(java.lang.String fileName,
java.lang.CharSequence data)
public static final boolean deleteFile(java.lang.String fileName)
public boolean write(java.lang.CharSequence data,
boolean append)