Package javajs.util
Class CompoundDocument
java.lang.Object
javajs.util.BC
javajs.util.BinaryDocument
javajs.util.CompoundDocument
- All Implemented Interfaces:
GenericBinaryDocument,GenericBinaryDocumentReader
-
Field Summary
FieldsFields inherited from class javajs.util.BinaryDocument
bis, isBigEndian, isRandom, nBytes, out, stream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllDataFiles(String binaryFileList, String firstFile) voidreads a compound document directory and saves all data in a Hashtable so that the files may be organized later in a different order.Lst<javajs.util.CompoundDocDirEntry> getDirectoryListing(String separator) getFileAsString(String entryName) voidsetDocStream(GenericZipTools jzt, BufferedInputStream bis) Methods inherited from class javajs.util.BinaryDocument
close, getInputStream, getPosition, readByte, readByteArray, readBytes, readDouble, readFloat, readInt, readIntLE, readLong, readShort, readString, readUInt8, readUnsignedShort, seek, setBigEndian, setOutputChannel, setRandom, setStream, setStreamData, swapBytesI, swapBytesSMethods inherited from class javajs.util.BC
bytesToDoubleToFloat, bytesToFloat, bytesToInt, bytesToShort, intToFloat, intToSignedInt
-
Field Details
-
jzt
-
-
Constructor Details
-
CompoundDocument
public CompoundDocument()
-
-
Method Details
-
setDocStream
-
getDirectory
-
getDirectoryListing
-
getAllData
-
getAllDataMapped
reads a compound document directory and saves all data in a Hashtable so that the files may be organized later in a different order. Also adds a #Directory_Listing entry. Files are bracketed by BEGIN Directory Entry and END Directory Entry lines, similar to ZipUtil.getAllData.- Specified by:
getAllDataMappedin interfaceGenericBinaryDocument- Overrides:
getAllDataMappedin classBinaryDocument- Parameters:
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-
-
getAllDataFiles
- Specified by:
getAllDataFilesin interfaceGenericBinaryDocument- Overrides:
getAllDataFilesin classBinaryDocument
-
getFileAsString
-