public class StringChunk extends Chunk
DEFAULT_NAME_PREFIX
Constructor and Description |
---|
StringChunk(int chunkId, Types.MAPIType type)
Create a String Chunk, with the specified type.
|
StringChunk(java.lang.String namePrefix, int chunkId, Types.MAPIType type)
Creates a String Chunk.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
get7BitEncoding()
Returns the Encoding that will be used to decode any "7 bit" (non unicode) data.
(返回将用于解码任何“7 位”(非 unicode)数据的编码。)
|
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.
(解析为非 unicode,应该是 7 位 CP1252 数据并返回产生的字符串。)
|
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.
(解析为非 unicode,应该是 7 位数据并返回产生的字符串。)
|
void |
readValue(java.io.InputStream value)
Reads the value of this chunk using an InputStream
(使用 InputStream 读取此块的值)
|
void |
set7BitEncoding(java.lang.String encoding)
Sets the Encoding that will be used to decode any "7 bit" (non unicode) data.
(设置将用于解码任何“7 位”(非 unicode)数据的编码。)
|
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.
(再次写出这个块的值)
|
getChunkId, getEntryName, getType
public StringChunk(java.lang.String namePrefix, int chunkId, Types.MAPIType type)
public StringChunk(int chunkId, Types.MAPIType type)
public java.lang.String get7BitEncoding()
public void set7BitEncoding(java.lang.String encoding)
public void readValue(java.io.InputStream value) throws java.io.IOException
Chunk
public void writeValue(java.io.OutputStream out) throws java.io.IOException
Chunk
writeValue
in class
Chunk
(类 Chunk 中的 writeValue)
java.io.IOException
(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)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.