public class StringChunk extends Chunk
chunkId, DEFAULT_NAME_PREFIX, namePrefix, type
Constructor and Description |
---|
StringChunk(int chunkId,
Types.MAPIType type)
Create a String Chunk, with the specified
type.
|
StringChunk(String namePrefix,
int chunkId,
Types.MAPIType type)
Creates a String Chunk.
|
Modifier and Type | Method and Description |
---|---|
String |
get7BitEncoding()
Returns the Encoding that will be used to
decode any "7 bit" (non unicode) data.
|
byte[] |
getRawValue() |
String |
getValue()
Returns the Text value of the chunk
|
protected static String |
parseAs7BitData(byte[] data)
Parses as non-unicode, supposedly 7 bit CP1252 data
and returns the string that that yields.
|
protected static String |
parseAs7BitData(byte[] data,
String encoding)
Parses as non-unicode, supposedly 7 bit data
and returns the string that that yields.
|
void |
readValue(InputStream value)
Reads the value of this chunk using an InputStream
|
void |
set7BitEncoding(String encoding)
Sets the Encoding that will be used to
decode any "7 bit" (non unicode) data.
|
void |
setValue(String str) |
String |
toString() |
void |
writeValue(OutputStream out)
Writes the value of this chunk back out again.
|
getChunkId, getEntryName, getType
public StringChunk(String namePrefix, int chunkId, Types.MAPIType type)
public StringChunk(int chunkId, Types.MAPIType type)
public String get7BitEncoding()
public void set7BitEncoding(String encoding)
public void readValue(InputStream value) throws IOException
Chunk
readValue
in class Chunk
IOException
public void writeValue(OutputStream out) throws IOException
Chunk
writeValue
in class Chunk
IOException
public String getValue()
public byte[] getRawValue()
public void setValue(String str)
protected static String parseAs7BitData(byte[] data)
Copyright © 2020. All rights reserved.