Package org.jf.dexlib2.writer.io
Class MemoryDataStore
- java.lang.Object
-
- org.jf.dexlib2.writer.io.MemoryDataStore
-
- All Implemented Interfaces:
DexDataStore
public class MemoryDataStore extends java.lang.Object implements DexDataStore
-
-
Constructor Summary
Constructors Constructor Description MemoryDataStore()
MemoryDataStore(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
byte[]
getBuffer()
byte[]
getData()
protected int
getNewBufferSize(int currentSize, int newMinSize)
int
getSize()
java.io.OutputStream
outputAt(int offset)
java.io.InputStream
readAt(int offset)
-
-
-
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 interfaceDexDataStore
-
getNewBufferSize
protected int getNewBufferSize(int currentSize, int newMinSize)
-
readAt
@Nonnull public java.io.InputStream readAt(int offset)
- Specified by:
readAt
in interfaceDexDataStore
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceDexDataStore
- Throws:
java.io.IOException
-
-