public static BinaryNode valueOf(byte[] data, int offset, int length) { if (data == null) { return null; } if (length == 0) { return EMPTY_BINARY_NODE; } return new BinaryNode(data, offset, length); }
/** * Factory method for constructing a node that represents given * binary data, and will get serialized as equivalent base64-encoded * String value */ public BinaryNode binaryNode(byte[] data, int offset, int length) { return BinaryNode.valueOf(data, offset, length); }
@Override public Object getEmbeddedObject() { if (!_closed) { JsonNode n = currentNode(); if (n != null) { if (n.isPojo()) { return ((POJONode) n).getPojo(); } if (n.isBinary()) { return ((BinaryNode) n).getBinaryValue(); } } } return null; }
@Override public Object getEmbeddedObject() { if (!_closed) { JsonNode n = currentNode(); if (n != null) { if (n.isPojo()) { return ((POJONode) n).getPojo(); } if (n.isBinary()) { return ((BinaryNode) n).getBinaryValue(); } } } return null; }
public static BinaryNode valueOf(byte[] data) { if (data == null) { return null; } if (data.length == 0) { return EMPTY_BINARY_NODE; } return new BinaryNode(data); }
/** * Factory method for constructing a node that represents given * binary data, and will get serialized as equivalent base64-encoded * String value */ public BinaryNode binaryNode(byte[] data) { return BinaryNode.valueOf(data); }
@Override public Object getEmbeddedObject() { if (!_closed) { JsonNode n = currentNode(); if (n != null) { if (n.isPojo()) { return ((POJONode) n).getPojo(); } if (n.isBinary()) { return ((BinaryNode) n).getBinaryValue(); } } } return null; }
public static BinaryNode valueOf(byte[] data) { if (data == null) { return null; } if (data.length == 0) { return EMPTY_BINARY_NODE; } return new BinaryNode(data); }
/** * Factory method for constructing a node that represents given * binary data, and will get serialized as equivalent base64-encoded * String value */ public BinaryNode binaryNode(byte[] data, int offset, int length) { return BinaryNode.valueOf(data, offset, length); }
public static BinaryNode valueOf(byte[] data, int offset, int length) { if (data == null) { return null; } if (length == 0) { return EMPTY_BINARY_NODE; } return new BinaryNode(data, offset, length); }
/** * Factory method for constructing a node that represents given * binary data, and will get serialized as equivalent base64-encoded * String value */ public BinaryNode binaryNode(byte[] data) { return BinaryNode.valueOf(data); }
public static BinaryNode valueOf(byte[] data, int offset, int length) { if (data == null) { return null; } if (length == 0) { return EMPTY_BINARY_NODE; } return new BinaryNode(data, offset, length); }
/** * Factory method for constructing a node that represents given * binary data, and will get serialized as equivalent base64-encoded * String value */ public BinaryNode binaryNode(byte[] data) { return BinaryNode.valueOf(data); }
public static BinaryNode valueOf(byte[] data) { if (data == null) { return null; } if (data.length == 0) { return EMPTY_BINARY_NODE; } return new BinaryNode(data); }
/** * Factory method for constructing a node that represents given * binary data, and will get serialized as equivalent base64-encoded * String value */ public BinaryNode binaryNode(byte[] data, int offset, int length) { return BinaryNode.valueOf(data, offset, length); }
public static BinaryNode valueOf(byte[] data, int offset, int length) { if (data == null) { return null; } if (length == 0) { return EMPTY_BINARY_NODE; } return new BinaryNode(data, offset, length); }
/** * Factory method for constructing a node that represents given * binary data, and will get serialized as equivalent base64-encoded * String value */ public BinaryNode binaryNode(byte[] data) { return BinaryNode.valueOf(data); }
public static BinaryNode valueOf(byte[] data) { if (data == null) { return null; } if (data.length == 0) { return EMPTY_BINARY_NODE; } return new BinaryNode(data); }
/** * Factory method for constructing a node that represents given * binary data, and will get serialized as equivalent base64-encoded * String value */ public BinaryNode binaryNode(byte[] data, int offset, int length) { return BinaryNode.valueOf(data, offset, length); }
public static BinaryNode valueOf(byte[] data) { if (data == null) { return null; } if (data.length == 0) { return EMPTY_BINARY_NODE; } return new BinaryNode(data); }