|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.harvard.hul.ois.jhove.module.pdf.Tokenizer
edu.harvard.hul.ois.jhove.module.pdf.FileTokenizer
public class FileTokenizer
Tokenizer subclass which gets data from a RandomAccessFile.
Field Summary |
---|
Fields inherited from class edu.harvard.hul.ois.jhove.module.pdf.Tokenizer |
---|
_ch, _file, PDFDOCENCODING |
Constructor Summary | |
---|---|
FileTokenizer(java.io.RandomAccessFile file)
|
Method Summary | |
---|---|
void |
backupChar()
Back up a byte so it will be read again. |
long |
getFilePos()
Gets the current position in the file. |
protected void |
initStream(Stream token)
Streams can occur only in files, not in streams, so some of the initialization of a stream object goes here. |
int |
readChar()
Gets a character from the file, using a buffer. |
void |
seek(long offset)
Set the Tokenizer to a new position in the file. |
protected void |
setStreamOffset(Stream token)
Sets the offset of a Stream to the current file position. |
Methods inherited from class edu.harvard.hul.ois.jhove.module.pdf.Tokenizer |
---|
addLanguageCode, getLanguageCodes, getNext, getNext, getOffset, getPDFACompliant, getWSString, readChar1, scanMode, seekReset, setEncrypted, setPDFACompliant |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileTokenizer(java.io.RandomAccessFile file)
Method Detail |
---|
public long getFilePos() throws java.io.IOException
java.io.IOException
public int readChar() throws java.io.IOException
readChar
in class Tokenizer
java.io.IOException
public void seek(long offset) throws java.io.IOException
seek
in class Tokenizer
offset
- The offset in bytes from the start of the file.
java.io.IOException
public void backupChar()
backupChar
in class Tokenizer
protected void initStream(Stream token) throws java.io.IOException
initStream
in class Tokenizer
java.io.IOException
protected void setStreamOffset(Stream token) throws java.io.IOException
setStreamOffset
in class Tokenizer
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |