class SPPEncoder implements MALEncoder, MALListEncoder {

	@Override
	public void encodeString(final String att) throws IllegalArgumentException, MALException {
		if (att == null) {
			throw new IllegalArgumentException(ILLEGAL_NULL_ARGUMENT);
		}
		try {
			byte[] bytes = att.getBytes("UTF-8");
			encodeUInteger(new UInteger(bytes.length));
			write(bytes);
		} catch (UnsupportedEncodingException ex) {
			// UTF-8 is required by the Java Standard, this exception cannot be thrown
		}
	}

	public  SPPEncoder(final OutputStream outputStream, final Map properties);

}