public class CompoundDocument extends BinaryDocument
Modifier and Type | Field and Description |
---|---|
(package private) SB |
data |
(package private) JmolList<CompoundDocDirEntry> |
directory |
(package private) CompoundDocHeader |
header |
(package private) int |
nDirEntriesperSector |
(package private) int |
nIntPerSector |
(package private) int |
nShortSectorsPerStandardSector |
(package private) CompoundDocDirEntry |
rootEntry |
(package private) int[] |
SAT |
(package private) int |
sectorSize |
(package private) int |
shortSectorSize |
(package private) int[] |
SSAT |
isBigEndian, isRandom, nBytes, os, stream, t8
Constructor and Description |
---|
CompoundDocument() |
Modifier and Type | Method and Description |
---|---|
SB |
getAllData() |
SB |
getAllDataFiles(java.lang.String binaryFileList,
java.lang.String firstFile) |
void |
getAllDataMapped(java.lang.String prefix,
java.lang.String binaryFileList,
java.util.Map<java.lang.String,java.lang.String> fileData)
reads a compound document directory and saves all data in a Hashtable
so that the files may be organized later in a different order.
|
JmolList<CompoundDocDirEntry> |
getDirectory() |
java.lang.String |
getDirectoryListing(java.lang.String separator) |
private void |
getDirectoryTable() |
private SB |
getEntryAsString(CompoundDocDirEntry thisEntry,
boolean asBinaryString) |
SB |
getFileAsString(java.lang.String entryName) |
private long |
getOffset(int SID) |
private void |
getSectorAllocationTable() |
private int |
getSectorData(SB data,
byte[] byteBuf,
int nSectorBytes,
int nBytes,
boolean asBinaryString,
ZipData gzipData) |
private void |
getShortSectorAllocationTable() |
private SB |
getShortStringData(int shortSID,
int nBytes,
boolean asBinaryString) |
private SB |
getStandardStringData(int thisSID,
int nBytes,
boolean asBinaryString) |
private void |
gotoSector(int SID) |
private boolean |
readHeader() |
void |
setStream(java.io.BufferedInputStream bis,
boolean isBigEndian) |
bytesToDoubleToFloat, close, getPosition, readByte, readByteArray, readDouble, readFloat, readInt, readIntLE, readLong, readShort, readString, readUnsignedShort, seek, setFracIEEE, setOutputStream, setRandom, setStreamData, shiftIEEE, swapBytesI, swapBytesS, writeBytes, writeInt, writeLong, writeShort
CompoundDocHeader header
JmolList<CompoundDocDirEntry> directory
CompoundDocDirEntry rootEntry
int[] SAT
int[] SSAT
int sectorSize
int shortSectorSize
int nShortSectorsPerStandardSector
int nIntPerSector
int nDirEntriesperSector
SB data
public void setStream(java.io.BufferedInputStream bis, boolean isBigEndian)
setStream
in interface JmolDocument
setStream
in class BinaryDocument
public JmolList<CompoundDocDirEntry> getDirectory()
public java.lang.String getDirectoryListing(java.lang.String separator)
public SB getAllData()
public void getAllDataMapped(java.lang.String prefix, java.lang.String binaryFileList, java.util.Map<java.lang.String,java.lang.String> fileData)
getAllDataMapped
in interface JmolDocument
getAllDataMapped
in class BinaryDocument
prefix
- binaryFileList
- |-separated list of files that should be saved
as xx xx xx hex byte strings. The directory listing
is appended with ":asBinaryString"fileData
- public SB getAllDataFiles(java.lang.String binaryFileList, java.lang.String firstFile)
getAllDataFiles
in interface JmolDocument
getAllDataFiles
in class BinaryDocument
public SB getFileAsString(java.lang.String entryName)
private long getOffset(int SID)
private void gotoSector(int SID)
private boolean readHeader()
private void getSectorAllocationTable()
private void getShortSectorAllocationTable()
private void getDirectoryTable()
private SB getEntryAsString(CompoundDocDirEntry thisEntry, boolean asBinaryString)
private SB getStandardStringData(int thisSID, int nBytes, boolean asBinaryString)
private int getSectorData(SB data, byte[] byteBuf, int nSectorBytes, int nBytes, boolean asBinaryString, ZipData gzipData) throws java.lang.Exception
java.lang.Exception
private SB getShortStringData(int shortSID, int nBytes, boolean asBinaryString)