Generic implementation of the AssetFile interface This is used to reference objects that do not get otherwise processed. It could be an image, or even a generic file not interpreted by the asset-pipeline system.
Type | Name and description |
---|---|
Closure |
inputStreamSource |
String |
path |
Type | Name and description |
---|---|
Byte[] |
getBytes() Returns a byte array of the inputStream contents NOTE: For large files this could result in large memory issues. |
InputStream |
getInputStream() Returns an inputStream reference to the file. |
String |
getName() The name of the file without all path elements @return |
String |
getParentPath() Returns the parent path or directory with which this file belongs |
Methods inherited from class | Name |
---|---|
class AbstractAssetFile |
getByteDigest, getCanonicalPath, getDirectivePattern, getInputStream, getName, getParentPath, processedStream, toString |
Returns a byte array of the inputStream contents NOTE: For large files this could result in large memory issues. Not recommended to use anymore.
Returns an inputStream reference to the file. Since it is not a processed file this content is not saved in memory. This allows for digesting and inclusion of large unprocessed files without causing memory overhead.
The name of the file without all path elements
Returns the parent path or directory with which this file belongs