public class StreamTokenizer extends Tokenizer
_ch, _file, PDFDOCENCODING| Constructor and Description |
|---|
StreamTokenizer(RandomAccessFile file,
Stream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
backupChar()
Back up a byte so it will be read again.
|
protected void |
initStream(Stream token)
Streams can occur only in files, not in streams,
so this should never be called.
|
int |
readChar()
Gets a character from the file, using a buffer.
|
void |
seek(long offset)
Set the Tokenizer to a new position in the stream.
|
protected void |
setStreamOffset(Stream token)
Sets the offset of a Stream to the current file position.
|
addLanguageCode, getLanguageCodes, getNext, getNext, getOffset, getPDFACompliant, getWSString, readChar1, scanMode, seekReset, setEncrypted, setPDFACompliantpublic StreamTokenizer(RandomAccessFile file, Stream stream)
protected void initStream(Stream token) throws IOException, PdfException
initStream in class TokenizerIOExceptionPdfExceptionpublic int readChar()
throws IOException
readChar in class TokenizerIOExceptionpublic void seek(long offset)
throws IOException,
PdfException
seek in class Tokenizeroffset - The offset in bytes from the start of the stream.IOExceptionPdfExceptionprotected void setStreamOffset(Stream token) throws IOException, PdfException
setStreamOffset in class TokenizerIOExceptionPdfExceptionpublic void backupChar()
backupChar in class TokenizerCopyright © 2008–2017 The Open Preservation Foundation. All rights reserved.