|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hsmf.datatypes.Chunk org.apache.poi.hsmf.datatypes.StringChunk
public class StringChunk
A Chunk made up of a single string.
Field Summary |
---|
Fields inherited from class org.apache.poi.hsmf.datatypes.Chunk |
---|
chunkId, DEFAULT_NAME_PREFIX, namePrefix, type |
Constructor Summary | |
---|---|
StringChunk(int chunkId,
int type)
Create a String Chunk, with the specified type. |
|
StringChunk(java.lang.String namePrefix,
int chunkId,
int type)
Creates a String Chunk. |
Method Summary | |
---|---|
java.lang.String |
get7BitEncoding()
Returns the Encoding that will be used to decode any "7 bit" (non unicode) data. |
byte[] |
getRawValue()
|
java.lang.String |
getValue()
Returns the Text value of the chunk |
protected static java.lang.String |
parseAs7BitData(byte[] data)
Parses as non-unicode, supposedly 7 bit CP1252 data and returns the string that that yields. |
protected static java.lang.String |
parseAs7BitData(byte[] data,
java.lang.String encoding)
Parses as non-unicode, supposedly 7 bit data and returns the string that that yields. |
void |
readValue(java.io.InputStream value)
Reads the value of this chunk using an InputStream |
void |
set7BitEncoding(java.lang.String encoding)
Sets the Encoding that will be used to decode any "7 bit" (non unicode) data. |
void |
setValue(java.lang.String str)
|
java.lang.String |
toString()
|
void |
writeValue(java.io.OutputStream out)
Writes the value of this chunk back out again. |
Methods inherited from class org.apache.poi.hsmf.datatypes.Chunk |
---|
getChunkId, getEntryName, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringChunk(java.lang.String namePrefix, int chunkId, int type)
public StringChunk(int chunkId, int type)
Method Detail |
---|
public java.lang.String get7BitEncoding()
public void set7BitEncoding(java.lang.String encoding)
public void readValue(java.io.InputStream value) throws java.io.IOException
Chunk
readValue
in class Chunk
java.io.IOException
public void writeValue(java.io.OutputStream out) throws java.io.IOException
Chunk
writeValue
in class Chunk
java.io.IOException
public java.lang.String getValue()
public byte[] getRawValue()
public void setValue(java.lang.String str)
public java.lang.String toString()
toString
in class java.lang.Object
protected static java.lang.String parseAs7BitData(byte[] data)
protected static java.lang.String parseAs7BitData(byte[] data, java.lang.String encoding)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |