/** * Sets the Encoding that will be used to * decode any "7 bit" (non unicode) data. * This doesn't appear to be stored anywhere * specific in the file, so you may need * to guess by looking at headers etc */ public void set7BitEncoding(String encoding) { this.encoding7Bit = encoding; // Re-read the String if we're a 7 bit one if(type == Types.ASCII_STRING) { parseString(); } }
@Override public void readValue(InputStream value) throws IOException { rawValue = IOUtils.toByteArray(value); parseString(); }
/** * Sets the Encoding that will be used to decode any "7 bit" (non unicode) * data. This doesn't appear to be stored anywhere specific in the file, so * you may need to guess by looking at headers etc */ public void set7BitEncoding(String encoding) { this.encoding7Bit = encoding; // Re-read the String if we're a 7 bit one if (getType() == Types.ASCII_STRING) { parseString(); } }
public void readValue(InputStream value) throws IOException { rawValue = IOUtils.toByteArray(value); parseString(); } private void parseString() {