@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }
@Override protected TransformationResult<String, Buffer> transformImpl( final AttributeStorage storage, String input) throws TransformationException { if (input == null) { throw new TransformationException("Input could not be null"); } final byte[] byteRepresentation; try { if (stringTerminator != null) { input = input + stringTerminator; } byteRepresentation = input.getBytes(charset.name()); } catch(final UnsupportedEncodingException e) { throw new TransformationException("Charset " + charset.name() + " is not supported", e); } final Buffer output = obtainMemoryManager(storage).allocate(byteRepresentation.length + 4); if (stringTerminator == null) { output.putInt(byteRepresentation.length); } output.put(byteRepresentation); output.flip(); output.allowBufferDispose(true); return TransformationResult.createCompletedResult(output, null); }