/** * Compose. * * @param value * the value * @param clazz * the clazz * @return the byte[] */ private static byte[] compose(Object value, Class clazz) { ByteBuffer buf = ByteBuffer.wrap((byte[]) value, 0, ((byte[]) value).length); return ByteBufferUtil.hexToBytes((String) value).array(); }
public ByteBuffer fromString(String source) { return ByteBufferUtil.hexToBytes(source); }
public ByteBuffer fromString(String source) { return ByteBufferUtil.hexToBytes(source); }
public ByteBuffer fromString(String source) { return ByteBufferUtil.hexToBytes(source); }
private static byte[] compose(Object value, Class clazz) { ByteBuffer buf = ByteBuffer.wrap((byte[]) value, 0, ((byte[]) value).length); // return BytesType.instance.decompose(buf).array(); return ByteBufferUtil.hexToBytes((String) value).array(); }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }
private ByteBuffer fromHex(String hex) throws SyntaxException { try { return ByteBufferUtil.hexToBytes(hex); } catch (NumberFormatException e) { throwSyntaxError(e.getMessage()); return null; } }
private ByteBuffer fromHex(String hex) throws SyntaxException { try { return ByteBufferUtil.hexToBytes(hex); } catch (NumberFormatException e) { throwSyntaxError(e.getMessage()); return null; } }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }
private ByteBuffer fromHex(String hex) throws SyntaxException { try { return ByteBufferUtil.hexToBytes(hex); } catch (NumberFormatException e) { throwSyntaxError(e.getMessage()); return null; } }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }
private ByteBuffer fromHex(String hex) throws SyntaxException { try { return ByteBufferUtil.hexToBytes(hex); } catch (NumberFormatException e) { throwSyntaxError(e.getMessage()); return null; } }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }
private ByteBuffer fromHex(String hex) throws SyntaxException { try { return ByteBufferUtil.hexToBytes(hex); } catch (NumberFormatException e) { throwSyntaxError(e.getMessage()); return null; } }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }
public ByteBuffer fromString(String source) { try { return ByteBufferUtil.hexToBytes(source); } catch (NumberFormatException e) { throw new MarshalException(String.format("cannot parse '%s' as hex bytes", source), e); } }