@Beta public final class BytesResource extends ResourceBase
Constructor and Description |
---|
BytesResource(ResourceKey key,
byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists() |
com.google.common.io.ByteSource |
getBytes() |
long |
getSize() |
long |
getTimestamp() |
URL |
getUrl() |
getKey, handleError, openReader, openStream, readBytes, readLines, readString, requireExists
public BytesResource(ResourceKey key, byte[] bytes)
public URL getUrl()
public boolean exists()
public long getSize()
public long getTimestamp()
public com.google.common.io.ByteSource getBytes()