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) void
reads 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) void
setDocStream
(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, swapBytesS
Methods 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:
getAllDataMapped
in interfaceGenericBinaryDocument
- Overrides:
getAllDataMapped
in 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:
getAllDataFiles
in interfaceGenericBinaryDocument
- Overrides:
getAllDataFiles
in classBinaryDocument
-
getFileAsString
-