public class CharSequenceReaderextends Readerimplements Serializable
Readerimplementation that can read from String, StringBuffer, StringBuilder or CharBuffer.
|Constructor and Description|
Construct a new instance with the specified character sequence.
|Modifier and Type||Method and Description|
Close resets the file back to the start and removes any marked position.
Mark the current position.
Mark is supported (returns true).
Read a single character.
Read the sepcified number of characters into the array.
Reset the reader to the last marked position (or the beginning if mark has not been called).
Skip the specified number of characters.
Return a String representation of the underlying character sequence.
public CharSequenceReader(CharSequence charSequence)
charSequence- The character sequence, may be
public void close()
public void mark(int readAheadLimit)
public boolean markSupported()
public int read()
public int read(char array, int offset, int length)
public void reset()
public long skip(long n)
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.