/** * @see javax.jcr.Value#getStream() */ public InputStream getStream() throws IllegalStateException, RepositoryException { if (stream == null) { if (getType() == PropertyType.NAME || getType() == PropertyType.PATH) { // qualified name/path value needs to be resolved stream = new ByteArrayInputStream(getString().getBytes(StandardCharsets.UTF_8)); } else { stream = qvalue.getStream(); } } return stream; }
/** * @see javax.jcr.Value#getStream() */ public InputStream getStream() throws IllegalStateException, RepositoryException { if (stream == null) { if (getType() == PropertyType.NAME || getType() == PropertyType.PATH) { // qualified name/path value needs to be resolved stream = new ByteArrayInputStream(getString().getBytes(StandardCharsets.UTF_8)); } else { stream = qvalue.getStream(); } } return stream; }
final byte[] value = getString().getBytes(StandardCharsets.UTF_8); return new Binary() { public int read(byte[] b, long position) {
final byte[] value = getString().getBytes(StandardCharsets.UTF_8); return new Binary() { public int read(byte[] b, long position) {