Package org.robolectric.res.android
Class Asset
java.lang.Object
org.robolectric.res.android.Asset
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
close()
static String
abstract byte[]
getBuffer
(boolean wordAligned) abstract File
getFile()
abstract String
static int
abstract long
abstract long
abstract boolean
static Asset
newFileAsset
(FileTypedResource fileTypedResource) abstract FileDescriptor
openFileDescriptor
(Ref<Long> outStart, Ref<Long> outLength) final int
read
(byte[] buf, int count) abstract int
read
(byte[] buf, int bufOffset, int count) abstract long
seek
(long offset, int whence)
-
Field Details
-
EXCLUDED_ASSET
-
onClose
-
SEEK_SET
public static final int SEEK_SET- See Also:
-
SEEK_CUR
public static final int SEEK_CUR- See Also:
-
SEEK_END
public static final int SEEK_END- See Also:
-
-
Method Details
-
newFileAsset
- Throws:
IOException
-
read
public final int read(byte[] buf, int count) -
read
public abstract int read(byte[] buf, int bufOffset, int count) -
seek
public abstract long seek(long offset, int whence) -
close
public abstract void close() -
getBuffer
public abstract byte[] getBuffer(boolean wordAligned) -
getLength
public abstract long getLength() -
getRemainingLength
public abstract long getRemainingLength() -
openFileDescriptor
-
getFile
-
getFileName
-
isNinePatch
public abstract boolean isNinePatch() -
getGlobalCount
public static int getGlobalCount() -
getAssetAllocations
-