Package org.robolectric.res.android
Class Asset
java.lang.Object
org.robolectric.res.android.Asset
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidclose()static Stringabstract byte[]getBuffer(boolean wordAligned) abstract FilegetFile()abstract Stringstatic intabstract longabstract longabstract booleanstatic AssetnewFileAsset(FileTypedResource fileTypedResource) abstract FileDescriptoropenFileDescriptor(Ref<Long> outStart, Ref<Long> outLength) final intread(byte[] buf, int count) abstract intread(byte[] buf, int bufOffset, int count) abstract longseek(long offset, int whence) 
- 
Field Details- 
EXCLUDED_ASSET
- 
onClose
- 
SEEK_SETpublic static final int SEEK_SET- See Also:
 
- 
SEEK_CURpublic static final int SEEK_CUR- See Also:
 
- 
SEEK_ENDpublic static final int SEEK_END- See Also:
 
 
- 
- 
Method Details- 
newFileAsset- Throws:
- IOException
 
- 
readpublic final int read(byte[] buf, int count) 
- 
readpublic abstract int read(byte[] buf, int bufOffset, int count) 
- 
seekpublic abstract long seek(long offset, int whence) 
- 
closepublic abstract void close()
- 
getBufferpublic abstract byte[] getBuffer(boolean wordAligned) 
- 
getLengthpublic abstract long getLength()
- 
getRemainingLengthpublic abstract long getRemainingLength()
- 
openFileDescriptor
- 
getFile
- 
getFileName
- 
isNinePatchpublic abstract boolean isNinePatch()
- 
getGlobalCountpublic static int getGlobalCount()
- 
getAssetAllocations
 
-