Class Asset


  • public abstract class Asset
    extends java.lang.Object
    • Method Detail

      • newFileAsset

        public static Asset newFileAsset​(FileTypedResource fileTypedResource)
                                  throws java.io.IOException
        Throws:
        java.io.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 java.io.FileDescriptor openFileDescriptor​(Ref<java.lang.Long> outStart,
                                                                  Ref<java.lang.Long> outLength)
      • getFile

        public abstract java.io.File getFile()
      • getFileName

        public abstract java.lang.String getFileName()
      • isNinePatch

        public abstract boolean isNinePatch()
      • getGlobalCount

        public static int getGlobalCount()
      • getAssetAllocations

        public static java.lang.String getAssetAllocations()