org.jmol.util

Class CompoundDocument

public class CompoundDocument extends BinaryDocument

Nested Class Summary
classCompoundDocument.CmpDocDirectoryEntry
classCompoundDocument.CmpDocHeader
Field Summary
StringBufferdata
Vectordirectory
CompoundDocument.CmpDocHeaderheader
intnDirEntriesperSector
intnIntPerSector
intnShortSectorsPerStandardSector
CompoundDocument.CmpDocDirectoryEntryrootEntry
intsectorSize
intshortSectorSize
int[]SAT
int[]SSAT
Constructor Summary
CompoundDocument(BufferedInputStream bis)
Method Summary
StringBuffergetAllData()
VectorgetDirectory()
StringgetDirectoryListing(String separator)
voidgetDirectoryTable()
StringBuffergetFileAsString(String entryName)
StringBuffergetFileAsString(CompoundDocument.CmpDocDirectoryEntry thisEntry)
longgetOffset(int SID)
voidgetSectorAllocationTable()
voidgetShortSectorAllocationTable()
StringBuffergetShortStringData(int shortSID, int nBytes)
StringBuffergetStandardStringData(int thisSID, int nBytes)
voidgotoSector(int SID)
static booleanisCompoundDocument(InputStream is)
static booleanisCompoundDocument(byte[] bytes)
booleanreadHeader()

Field Detail

data

StringBuffer data

directory

Vector directory

header

CompoundDocument.CmpDocHeader header

nDirEntriesperSector

int nDirEntriesperSector

nIntPerSector

int nIntPerSector

nShortSectorsPerStandardSector

int nShortSectorsPerStandardSector

rootEntry

CompoundDocument.CmpDocDirectoryEntry rootEntry

sectorSize

int sectorSize

shortSectorSize

int shortSectorSize

SAT

int[] SAT

SSAT

int[] SSAT

Constructor Detail

CompoundDocument

public CompoundDocument(BufferedInputStream bis)

Method Detail

getAllData

public StringBuffer getAllData()

getDirectory

public Vector getDirectory()

getDirectoryListing

public String getDirectoryListing(String separator)

getDirectoryTable

private void getDirectoryTable()

getFileAsString

public StringBuffer getFileAsString(String entryName)

getFileAsString

private StringBuffer getFileAsString(CompoundDocument.CmpDocDirectoryEntry thisEntry)

getOffset

private long getOffset(int SID)

getSectorAllocationTable

private void getSectorAllocationTable()

getShortSectorAllocationTable

private void getShortSectorAllocationTable()

getShortStringData

private StringBuffer getShortStringData(int shortSID, int nBytes)

getStandardStringData

private StringBuffer getStandardStringData(int thisSID, int nBytes)

gotoSector

private void gotoSector(int SID)

isCompoundDocument

public static boolean isCompoundDocument(InputStream is)

isCompoundDocument

public static boolean isCompoundDocument(byte[] bytes)

readHeader

private boolean readHeader()