class SPPDecoder implements MALDecoder {

	@Override
	public String decodeString() throws MALException {
//		long length = decodeUInteger().getValue();
		long length = decodeUShort().getValue();
		if (length > Integer.MAX_VALUE) {
			throw new MALException(LENGTH_NOT_SUPPORTED);
		}
		String ret = null;
		try {
			ret = new String(read((int) length), "UTF-8");
		} catch (UnsupportedEncodingException ex) {
			// UTF-8 is required by the Java Standard, this exception cannot be thrown
		}
		return ret;
	}

	public  SPPDecoder(final InputStream inputStream, final Map properties);

}