Class Asset

java.lang.Object
org.robolectric.res.android.Asset

public abstract class Asset extends Object
  • Field Details

  • Method Details

    • newFileAsset

      public static Asset newFileAsset(FileTypedResource fileTypedResource) throws IOException
      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

      public abstract FileDescriptor openFileDescriptor(Ref<Long> outStart, Ref<Long> outLength)
    • getFile

      public abstract File getFile()
    • getFileName

      public abstract String getFileName()
    • isNinePatch

      public abstract boolean isNinePatch()
    • getGlobalCount

      public static int getGlobalCount()
    • getAssetAllocations

      public static String getAssetAllocations()