Class TextInputStream
java.lang.Object
java.io.InputStream
org.apache.james.mime4j.io.TextInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
InputStream backed by CharSequence.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteBufferprivate final CharBufferprivate final CharsetEncoderprivate int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
encoder
-
cbuf
-
bbuf
-
mark
private int mark
-
-
Constructor Details
-
TextInputStream
TextInputStream(CharSequence s, Charset charset, int bufferSize)
-
-
Method Details
-
fillBuffer
- Throws:
CharacterCodingException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-