@CompileStatic class ByteArrayResource extends Object implements Resource
A Resource impl used represent a Resource as an array of bytes
Type | Name and description |
---|---|
byte[] |
bytes |
String |
description |
Constructor and description |
---|
ByteArrayResource(byte[] bytes) |
ByteArrayResource(byte[] bytes, String desc) |
Type Params | Return Type | Name and description |
---|---|---|
|
long |
contentLength() |
|
Resource |
createRelative(String relativePath) |
|
boolean |
exists() |
|
File |
getFile() |
|
String |
getFilename() |
|
InputStream |
getInputStream() |
|
URI |
getURI() |
|
URL |
getURL() |
|
boolean |
isReadable() |
|
long |
lastModified() |