Package com.rtfparserkit.parser
Class RtfStreamSource
- java.lang.Object
-
- com.rtfparserkit.parser.RtfStreamSource
-
- All Implemented Interfaces:
IRtfSource
public class RtfStreamSource extends java.lang.Object implements IRtfSource
Implementation of IRtfSource which will read the RTF file from a stream.
-
-
Field Summary
Fields Modifier and Type Field Description private intpushBackCharprivate java.io.InputStreamstream
-
Constructor Summary
Constructors Constructor Description RtfStreamSource(java.io.InputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()Read a single byte.intread(byte[] b)Read enough bytes to fill the array.voidunread(int c)Push back a single byte to allow it to be read again by the parser.
-
-
-
Method Detail
-
read
public int read() throws java.io.IOExceptionDescription copied from interface:IRtfSourceRead a single byte.- Specified by:
readin interfaceIRtfSource- Throws:
java.io.IOException
-
unread
public void unread(int c) throws java.io.IOExceptionDescription copied from interface:IRtfSourcePush back a single byte to allow it to be read again by the parser.- Specified by:
unreadin interfaceIRtfSource- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOExceptionDescription copied from interface:IRtfSourceRead enough bytes to fill the array.- Specified by:
readin interfaceIRtfSource- Throws:
java.io.IOException
-
-