Class MemoryDataStore

  • All Implemented Interfaces:
    DexDataStore

    public class MemoryDataStore
    extends java.lang.Object
    implements DexDataStore
    • Constructor Detail

      • MemoryDataStore

        public MemoryDataStore()
      • MemoryDataStore

        public MemoryDataStore​(int initialCapacity)
    • Method Detail

      • getBuffer

        public byte[] getBuffer()
      • getSize

        public int getSize()
      • getData

        public byte[] getData()
      • outputAt

        @Nonnull
        public java.io.OutputStream outputAt​(int offset)
        Specified by:
        outputAt in interface DexDataStore
      • getNewBufferSize

        protected int getNewBufferSize​(int currentSize,
                                       int newMinSize)
      • readAt

        @Nonnull
        public java.io.InputStream readAt​(int offset)
        Specified by:
        readAt in interface DexDataStore
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface DexDataStore
        Throws:
        java.io.IOException