--- src/scratchpad/src/org/apache/poi/hsmf/datatypes/StringChunk.java (revision 695289) +++ src/scratchpad/src/org/apache/poi/hsmf/datatypes/StringChunk.java (working copy) @@ -27,11 +27,22 @@ private String value; - public StringChunk(int chunkId) { + /** + * Constructor for specifying both the chunk id and the type, in case + * the default type of Types.STRING does not suffice. + * + * @param chunkId + * @param type + */ + public StringChunk(int chunkId, int type) { this.chunkId = chunkId; - this.type = Types.STRING; + this.type = type; } + public StringChunk(int chunkId) { + this(chunkId, Types.STRING); + } + /* (non-Javadoc) * @see org.apache.poi.hsmf.Chunk.Chunk#getValueByteArray() */