public abstract class Asset extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
Asset.AccessMode |
Modifier and Type | Field | Description |
---|---|---|
static Asset |
EXCLUDED_ASSET |
|
Runnable |
onClose |
|
static int |
SEEK_CUR |
|
static int |
SEEK_END |
|
static int |
SEEK_SET |
Modifier and Type | Method | Description |
---|---|---|
abstract void |
close() |
|
static String |
getAssetAllocations() |
|
abstract byte[] |
getBuffer(boolean wordAligned) |
|
abstract File |
getFile() |
|
abstract String |
getFileName() |
|
static int |
getGlobalCount() |
|
abstract long |
getLength() |
|
abstract long |
getRemainingLength() |
|
abstract boolean |
isNinePatch() |
|
static Asset |
newFileAsset(FileTypedResource fileTypedResource) |
|
abstract FileDescriptor |
openFileDescriptor(Ref<Long> outStart,
Ref<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 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 IOException
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 FileDescriptor openFileDescriptor(Ref<Long> outStart, Ref<Long> outLength)
public abstract File getFile()
public abstract String getFileName()
public abstract boolean isNinePatch()
public static int getGlobalCount()
public static String getAssetAllocations()