public abstract class Asset
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Asset.AccessMode |
Modifier and Type | Field and Description |
---|---|
static Asset |
EXCLUDED_ASSET |
java.lang.Runnable |
onClose |
static int |
SEEK_CUR |
static int |
SEEK_END |
static int |
SEEK_SET |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
static java.lang.String |
getAssetAllocations() |
abstract byte[] |
getBuffer(boolean wordAligned) |
abstract java.io.File |
getFile() |
abstract java.lang.String |
getFileName() |
static int |
getGlobalCount() |
abstract long |
getLength() |
abstract long |
getRemainingLength() |
abstract boolean |
isNinePatch() |
static Asset |
newFileAsset(FileTypedResource fileTypedResource) |
abstract java.io.FileDescriptor |
openFileDescriptor(Ref<java.lang.Long> outStart,
Ref<java.lang.Long> outLength) |
int |
read(byte[] buf,
int count) |
abstract int |
read(byte[] buf,
int bufOffset,
int count) |
abstract long |
seek(long offset,
int whence) |
public static final Asset EXCLUDED_ASSET
public java.lang.Runnable onClose
public static final int SEEK_SET
public static final int SEEK_CUR
public static final int SEEK_END
public static Asset newFileAsset(FileTypedResource fileTypedResource) throws java.io.IOException
java.io.IOException
public final int read(byte[] buf, int count)
public abstract int read(byte[] buf, int bufOffset, int count)
public abstract long seek(long offset, int whence)
public abstract void close()
public abstract byte[] getBuffer(boolean wordAligned)
public abstract long getLength()
public abstract long getRemainingLength()
public abstract java.io.FileDescriptor openFileDescriptor(Ref<java.lang.Long> outStart, Ref<java.lang.Long> outLength)
public abstract java.io.File getFile()
public abstract java.lang.String getFileName()
public abstract boolean isNinePatch()
public static int getGlobalCount()
public static java.lang.String getAssetAllocations()