Package org.apache.james.mime4j.io
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 ByteBuffer
private final CharBuffer
private final CharsetEncoder
private int
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
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:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-