public final class EncodedResource
extends java.lang.Object
IEncodedResource instances.| Modifier and Type | Method and Description |
|---|---|
static IEncodedResource |
fromBytes(byte[] byteArray)
Note: the array is *not* copied.
|
static IEncodedResource |
fromFileSystem(nl.weeaboo.filesystem.IFileSystem fileSystem,
nl.weeaboo.filesystem.FilePath path)
Returns an
IEncodedResource that reads its data from a file in the given filesystem. |
static IEncodedResource |
fromTempFile(java.io.File file)
Returns an
IEncodedResource wrapping a temp file. |
public static IEncodedResource fromBytes(byte[] byteArray)
public static IEncodedResource fromFileSystem(nl.weeaboo.filesystem.IFileSystem fileSystem, nl.weeaboo.filesystem.FilePath path)
IEncodedResource that reads its data from a file in the given filesystem.public static IEncodedResource fromTempFile(java.io.File file)
IEncodedResource wrapping a temp file.