public class DexDataWriter
extends java.io.BufferedOutputStream
| Constructor and Description |
|---|
DexDataWriter(java.io.OutputStream output,
int filePosition)
Construct a new DexWriter instance that writes to output.
|
DexDataWriter(java.io.OutputStream output,
int filePosition,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
align() |
int |
getPosition() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeEncodedDouble(int valueType,
double value) |
void |
writeEncodedFloat(int valueType,
float value) |
void |
writeEncodedInt(int valueType,
int value) |
void |
writeEncodedLong(int valueType,
long value) |
void |
writeEncodedUint(int valueType,
int value) |
void |
writeEncodedValueHeader(int valueType,
int valueArg) |
void |
writeInt(int value) |
static void |
writeInt(java.io.OutputStream out,
int value) |
void |
writeLong(long value) |
protected void |
writeRightZeroExtendedInt(int valueType,
int value) |
protected void |
writeRightZeroExtendedLong(int valueType,
long value) |
void |
writeShort(int value) |
void |
writeSleb128(int value) |
static void |
writeSleb128(java.io.OutputStream out,
int value) |
void |
writeString(java.lang.String string) |
void |
writeUbyte(int value) |
void |
writeUleb128(int value) |
static void |
writeUleb128(java.io.OutputStream out,
int value) |
void |
writeUshort(int value) |
public DexDataWriter(@Nonnull
java.io.OutputStream output,
int filePosition)
output - An OutputStream to write the data to.filePosition - The position within the file that OutputStream will write to.public DexDataWriter(@Nonnull
java.io.OutputStream output,
int filePosition,
int bufferSize)
public void write(int b)
throws java.io.IOException
write in class java.io.BufferedOutputStreamjava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.BufferedOutputStreamjava.io.IOExceptionpublic void writeLong(long value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeInt(java.io.OutputStream out,
int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeInt(int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeShort(int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeUshort(int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeUbyte(int value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeUleb128(java.io.OutputStream out,
int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeUleb128(int value)
throws java.io.IOException
java.io.IOExceptionpublic static void writeSleb128(java.io.OutputStream out,
int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeSleb128(int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeEncodedValueHeader(int valueType,
int valueArg)
throws java.io.IOException
java.io.IOExceptionpublic void writeEncodedInt(int valueType,
int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeEncodedLong(int valueType,
long value)
throws java.io.IOException
java.io.IOExceptionpublic void writeEncodedUint(int valueType,
int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeEncodedFloat(int valueType,
float value)
throws java.io.IOException
java.io.IOExceptionprotected void writeRightZeroExtendedInt(int valueType,
int value)
throws java.io.IOException
java.io.IOExceptionpublic void writeEncodedDouble(int valueType,
double value)
throws java.io.IOException
java.io.IOExceptionprotected void writeRightZeroExtendedLong(int valueType,
long value)
throws java.io.IOException
java.io.IOExceptionpublic void writeString(java.lang.String string)
throws java.io.IOException
java.io.IOExceptionpublic void align()
throws java.io.IOException
java.io.IOExceptionpublic int getPosition()