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 voidclose()byte[]getBuffer()byte[]getData()protected intgetNewBufferSize(int currentSize, int newMinSize)intgetSize()java.io.OutputStreamoutputAt(int offset)java.io.InputStreamreadAt(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:
outputAtin interfaceDexDataStore
-
getNewBufferSize
protected int getNewBufferSize(int currentSize, int newMinSize)
-
readAt
@Nonnull public java.io.InputStream readAt(int offset)
- Specified by:
readAtin interfaceDexDataStore
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceDexDataStore- Throws:
java.io.IOException
-
-