com.servingxml.components.flatfile.scanner.characters
Class CharBufferImpl
java.lang.Object
com.servingxml.components.flatfile.scanner.characters.CharBufferImpl
- All Implemented Interfaces:
- CharBuffer
public class CharBufferImpl
- extends java.lang.Object
- implements CharBuffer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLOCK_LENGTH
protected static final int BLOCK_LENGTH
- See Also:
- Constant Field Values
buffer
protected char[] buffer
start
protected int start
length
protected int length
maxLength
protected int maxLength
position
protected int position
reserved
protected int reserved
CharBufferImpl
public CharBufferImpl(java.io.Reader reader)
read
protected void read(int n)
throws java.io.IOException
- Throws:
java.io.IOException
getPosition
public int getPosition()
- Specified by:
getPosition
in interface CharBuffer
setPosition
public void setPosition(int position)
- Specified by:
setPosition
in interface CharBuffer
getReserved
public int getReserved()
- Specified by:
getReserved
in interface CharBuffer
setReserved
public void setReserved(int reserved)
- Specified by:
setReserved
in interface CharBuffer
maxLength
public int maxLength()
- Specified by:
maxLength
in interface CharBuffer
next
public void next()
throws java.io.IOException
- Specified by:
next
in interface CharBuffer
- Throws:
java.io.IOException
next
public void next(int n)
throws java.io.IOException
- Specified by:
next
in interface CharBuffer
- Throws:
java.io.IOException
done
public boolean done()
- Specified by:
done
in interface CharBuffer
eof
protected boolean eof()
current
public char current()
- Specified by:
current
in interface CharBuffer
grow
protected void grow(int n)
buffer
public char[] buffer()
- Specified by:
buffer
in interface CharBuffer
start
public int start()
- Specified by:
start
in interface CharBuffer
length
public int length()
- Specified by:
length
in interface CharBuffer
startsWith
public boolean startsWith(char[] prefix)
throws java.io.IOException
- Specified by:
startsWith
in interface CharBuffer
- Throws:
java.io.IOException
clear
public void clear()
- Specified by:
clear
in interface CharBuffer