public class StringBasedBlob extends AbstractBlob
Blob implementations is based on a string.| Constructor and Description |
|---|
StringBasedBlob(String value) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getNewStream()
This implementation returns the bytes of the UTF-8 encoding
of the underlying string.
|
long |
length()
This implementation returns the number of bytes in the UTF-8 encoding
of the underlying string.
|
String |
toString() |
calculateSha256, equal, equals, getContentIdentity, getReference, hashCode, sha256public StringBasedBlob(String value)
public String toString()
toString in class AbstractBlob@Nonnull public InputStream getNewStream()
public long length()
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.