Ole10Native objects come in different shapes:
| Modifier and Type | Class and Description |
|---|---|
| private static enum | Ole10Native.
the field encoding mode - merely a try-and-error guess ... |
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private String | |
| private byte[] | |
| private static final int | |
| private static final int | |
| private String | |
| private String | |
| private short | |
| private short | |
| private String | |
| private String | |
| private static int | |
| private static int | |
| private Ole10Native. | |
| public static final String | |
| private static final byte[] | OLE_MARKER_BYTES
Default content of the Ole entry |
| private static final String | |
| private int | |
| private short | |
| private static final Charset |
| Access | Constructor and Description |
|---|---|
| public | Ole10Native(String label, String filename, String command, byte[] data)
Creates an instance and fills the fields based on ... |
| public | Ole10Native(final byte[]
The buffer containing the Ole10Native record data, final int The start offset of the record in the buffer offset)Creates an instance and fills the fields based on the data in the given buffer. |
| Modifier and Type | Method and Description |
|---|---|
| public static Ole10Native | Returns: Returns an instance of this classPOI Filesystem object poifs)Creates an instance of this class from an embedded OLE Object. |
| public static Ole10Native | Returns: Returns an instance of this classPOI Filesystem object directory)Creates an instance of this class from an embedded OLE Object. |
| public static void | createOleMarkerEntry(final DirectoryEntry parent)
Add the \1OLE marker entry, which is not the Ole10Native entry. |
| public static void | createOleMarkerEntry(final POIFSFileSystem poifs)
Add the \1OLE marker entry, which is not the Ole10Native entry. |
| public String | Returns: the commandReturns the command field - usually the name of the file being embedded including the full path, may be a command specified during embedding the file. |
| public String | getCommand2()
Get Command string of UTF16 extended OLE packages or |
| public byte[] | Returns: the dataBufferReturns the buffer containing the embedded file's data, or
|
| public int | |
| public String | Returns: the fileNameReturns the fileName field - usually the name of the file being embedded including the full path. |
| public String | getFileName2()
Get filename string for UTF16 extended OLE packages or |
| public short | |
| public short | |
| public String | Returns: the labelReturns the label field - usually the name of the file (without directory) but probably may be any name specified during packaging/embedding the data. |
| public String | getLabel2()
Get Label string for UTF16 extended OLE packages or |
| public static int | |
| public static int | |
| public int | Returns: the totalSizeReturns the value of the totalSize field - the total length of the structure is totalSize + 4 (value of this field + size of this field). |
| public short | |
| private static String | |
| private static String | |
| private void | |
| private void | |
| private void | |
| private static String | |
| public void | |
| public void | setCommand2(String command2)
Set Command string for UTF16 extended OLE packages or |
| public void | |
| public void | |
| public void | setFileName2(String fileName2)
Set filename string for UTF16 extended OLE packages or |
| public void | |
| public void | |
| public void | |
| public void | |
| public static void | |
| public static void | |
| public void | |
| public void | writeOut(OutputStream out)
Have the contents printer out into an OutputStream, used when writing a file back out to disk (Normally, atom classes will keep their bytes around, but non atom classes will just request the bytes from their children, then chuck on their header and return) |
| command | back to summary |
|---|---|
| private String command | |
| command2 | back to summary |
|---|---|
| private String command2 | |
| dataBuffer | back to summary |
|---|---|
| private byte[] dataBuffer | |
| DEFAULT_MAX_RECORD_LENGTH | back to summary |
|---|---|
| private static final int DEFAULT_MAX_RECORD_LENGTH | |
| DEFAULT_MAX_STRING_LENGTH | back to summary |
|---|---|
| private static final int DEFAULT_MAX_STRING_LENGTH | |
| fileName | back to summary |
|---|---|
| private String fileName | |
| fileName2 | back to summary |
|---|---|
| private String fileName2 | |
| flags1 | back to summary |
|---|---|
| private short flags1 | |
| flags2 | back to summary |
|---|---|
| private short flags2 | |
| label | back to summary |
|---|---|
| private String label | |
| label2 | back to summary |
|---|---|
| private String label2 | |
| MAX_RECORD_LENGTH | back to summary |
|---|---|
| private static int MAX_RECORD_LENGTH | |
| MAX_STRING_LENGTH | back to summary |
|---|---|
| private static int MAX_STRING_LENGTH | |
| mode | back to summary |
|---|---|
| private Ole10Native. | |
| OLE10_NATIVE | back to summary |
|---|---|
| public static final String OLE10_NATIVE | |
| OLE_MARKER_BYTES | back to summary |
|---|---|
| private static final byte[] OLE_MARKER_BYTES Default content of the Ole entry | |
| OLE_MARKER_NAME | back to summary |
|---|---|
| private static final String OLE_MARKER_NAME | |
| totalSize | back to summary |
|---|---|
| private int totalSize | |
| unknown1 | back to summary |
|---|---|
| private short unknown1 | |
| UTF8 | back to summary |
|---|---|
| private static final Charset UTF8 | |
| Ole10Native | back to summary |
|---|---|
| public Ole10Native(String label, String filename, String command, byte[] data) Creates an instance and fills the fields based on ... the fields | |
| Ole10Native | back to summary |
|---|---|
| public Ole10Native(final byte[] data, final int offset) throws Ole10NativeException Creates an instance and fills the fields based on the data in the given buffer.
| |
| createFromEmbeddedOleObject | back to summary |
|---|---|
| public static Ole10Native createFromEmbeddedOleObject(POIFSFileSystem poifs) throws IOException, Ole10NativeException Creates an instance of this class from an embedded OLE Object. The OLE Object is expected to include a stream "{01}Ole10Native" which contains the actual data relevant for this class.
| |
| createFromEmbeddedOleObject | back to summary |
|---|---|
| public static Ole10Native createFromEmbeddedOleObject(DirectoryNode directory) throws IOException, Ole10NativeException Creates an instance of this class from an embedded OLE Object. The OLE Object is expected to include a stream "{01}Ole10Native" which contains the actual data relevant for this class.
| |
| createOleMarkerEntry | back to summary |
|---|---|
| public static void createOleMarkerEntry(final DirectoryEntry parent) throws IOException Add the \1OLE marker entry, which is not the Ole10Native entry. Beside this "Ole" record there were several other records, e.g. CompObj, OlePresXXX, but it seems, that they aren't necessary | |
| createOleMarkerEntry | back to summary |
|---|---|
| public static void createOleMarkerEntry(final POIFSFileSystem poifs) throws IOException Add the \1OLE marker entry, which is not the Ole10Native entry. Beside this "Ole" record there were several other records, e.g. CompObj, OlePresXXX, but it seems, that they aren't necessary | |
| getCommand | back to summary |
|---|---|
| public String getCommand() Returns the command field - usually the name of the file being embedded including the full path, may be a command specified during embedding the file.
| |
| getCommand2 | back to summary |
|---|---|
| public String getCommand2() Get Command string of UTF16 extended OLE packages or | |
| getDataBuffer | back to summary |
|---|---|
| public byte[] getDataBuffer() Returns the buffer containing the embedded file's data, or
| |
| getDataSize | back to summary |
|---|---|
| public int getDataSize() Returns the size of the embedded file. If the size is 0 (zero), no data
has been embedded. To be sure, that no data has been embedded, check
whether
| |
| getFileName | back to summary |
|---|---|
| public String getFileName() Returns the fileName field - usually the name of the file being embedded including the full path.
| |
| getFileName2 | back to summary |
|---|---|
| public String getFileName2() Get filename string for UTF16 extended OLE packages or | |
| getFlags1 | back to summary |
|---|---|
| public short getFlags1() Returns flags1 - currently unknown - usually 0x0002.
| |
| getFlags2 | back to summary |
|---|---|
| public short getFlags2() Returns flags2 - currently unknown - mostly 0x0000.
| |
| getLabel | back to summary |
|---|---|
| public String getLabel() Returns the label field - usually the name of the file (without directory) but probably may be any name specified during packaging/embedding the data.
| |
| getLabel2 | back to summary |
|---|---|
| public String getLabel2() Get Label string for UTF16 extended OLE packages or | |
| getMaxRecordLength | back to summary |
|---|---|
public static int getMaxRecordLength()
| |
| getMaxStringLength | back to summary |
|---|---|
public static int getMaxStringLength()
| |
| getTotalSize | back to summary |
|---|---|
| public int getTotalSize() Returns the value of the totalSize field - the total length of the structure is totalSize + 4 (value of this field + size of this field).
| |
| getUnknown1 | back to summary |
|---|---|
| public short getUnknown1() Returns unknown1 field - currently unknown.
| |
| readAsciiLen | back to summary |
|---|---|
| private static String readAsciiLen(LittleEndianByteArrayInputStream leis) throws IOException | |
| readAsciiZ | back to summary |
|---|---|
| private static String readAsciiZ(LittleEndianInput is) throws Ole10NativeException Read zero terminated string (ASCIIZ). | |
| readCompact | back to summary |
|---|---|
| private void readCompact(LittleEndianByteArrayInputStream leis) throws IOException | |
| readParsed | back to summary |
|---|---|
| private void readParsed(LittleEndianByteArrayInputStream leis) throws Ole10NativeException, IOException | |
| readUnparsed | back to summary |
|---|---|
| private void readUnparsed(LittleEndianByteArrayInputStream leis) throws IOException | |
| readUtf16 | back to summary |
|---|---|
| private static String readUtf16(LittleEndianByteArrayInputStream leis) throws IOException | |
| setCommand | back to summary |
|---|---|
| public void setCommand(String command) | |
| setCommand2 | back to summary |
|---|---|
| public void setCommand2(String command2) Set Command string for UTF16 extended OLE packages or | |
| setDataBuffer | back to summary |
|---|---|
| public void setDataBuffer(byte[] dataBuffer) | |
| setFileName | back to summary |
|---|---|
| public void setFileName(String fileName) | |
| setFileName2 | back to summary |
|---|---|
| public void setFileName2(String fileName2) Set filename string for UTF16 extended OLE packages or | |
| setFlags1 | back to summary |
|---|---|
| public void setFlags1(short flags1) | |
| setFlags2 | back to summary |
|---|---|
| public void setFlags2(short flags2) | |
| setLabel | back to summary |
|---|---|
| public void setLabel(String label) | |
| setLabel2 | back to summary |
|---|---|
| public void setLabel2(String label2) Set Label string for UTF16 extended OLE packages or | |
| setMaxRecordLength | back to summary |
|---|---|
public static void setMaxRecordLength(int length)
| |
| setMaxStringLength | back to summary |
|---|---|
public static void setMaxStringLength(int length)
| |
| setUnknown1 | back to summary |
|---|---|
| public void setUnknown1(short unknown1) | |
| writeOut | back to summary |
|---|---|
| public void writeOut(OutputStream out) throws IOException Have the contents printer out into an OutputStream, used when writing a file back out to disk (Normally, atom classes will keep their bytes around, but non atom classes will just request the bytes from their children, then chuck on their header and return) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Ole10Native. | compact
the data is stored raw after the length field and the flags1 field |
| public static final Ole10Native. | parsed
the data is stored in parsed format - including label, command, etc. |
| public static final Ole10Native. | unparsed
the data is stored raw after the length field |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Ole10Native. | |
| public static Ole10Native. |
| compact | back to summary |
|---|---|
| public static final Ole10Native. the data is stored raw after the length field and the flags1 field | |
| parsed | back to summary |
|---|---|
| public static final Ole10Native. the data is stored in parsed format - including label, command, etc. | |
| unparsed | back to summary |
|---|---|
| public static final Ole10Native. the data is stored raw after the length field | |
| EncodingMode | back to summary |
|---|---|
| private EncodingMode() | |
| valueOf | back to summary |
|---|---|
| public static Ole10Native. | |
| values | back to summary |
|---|---|
| public static Ole10Native. | |