Package icyllis.modernui.util
Class IOStreamParcel
java.lang.Object
icyllis.modernui.util.Parcel
icyllis.modernui.util.IOStreamParcel
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields inherited from class icyllis.modernui.util.Parcel
mNativeBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()protected voidensureCapacity(int len) voidlimit(int newLimit) voidposition(int newPosition) bytereadByte()voidreadBytes(byte[] dst, int off, int len) intreadInt()longreadLong()shortvoidwriteByte(int v) Write a byte value into the parcel.voidwriteBytes(byte[] src, int off, int len) voidwriteInt(int v) Write an integer value into the parcel.voidwriteLong(long v) Write a long integer value into the parcel.voidwriteShort(int v) Write a short integer value into the parcel.Methods inherited from class icyllis.modernui.util.Parcel
capacity, freeData, limit, position, readArray, readBoolean, readBooleanArray, readByteArray, readBytes, readChar, readCharArray, readCharSequence, readDataSet, readDouble, readDoubleArray, readFloat, readFloatArray, readInstant, readIntArray, readLongArray, readParcelable, readParcelable0, readParcelableCreator, readShortArray, readString, readString16, readString8, readUUID, readValue, setCapacity, writeArray, writeBoolean, writeBooleanArray, writeByteArray, writeByteArray, writeBytes, writeChar, writeCharArray, writeCharSequence, writeDataSet, writeDouble, writeDoubleArray, writeFloat, writeFloatArray, writeInstant, writeIntArray, writeList, writeLongArray, writeParcelable, writeParcelableCreator, writeShortArray, writeString, writeString16, writeString8, writeUUID, writeValue
-
Constructor Details
-
IOStreamParcel
-
-
Method Details
-
ensureCapacity
protected void ensureCapacity(int len) - Overrides:
ensureCapacityin classParcel
-
position
public void position(int newPosition) -
limit
public void limit(int newLimit) -
writeBytes
public void writeBytes(byte[] src, int off, int len) - Overrides:
writeBytesin classParcel
-
writeByte
public void writeByte(int v) Description copied from class:ParcelWrite a byte value into the parcel. -
writeShort
public void writeShort(int v) Description copied from class:ParcelWrite a short integer value into the parcel.- Overrides:
writeShortin classParcel
-
writeInt
public void writeInt(int v) Description copied from class:ParcelWrite an integer value into the parcel. -
writeLong
public void writeLong(long v) Description copied from class:ParcelWrite a long integer value into the parcel. -
readBytes
public void readBytes(byte[] dst, int off, int len) -
readByte
public byte readByte() -
readShort
public short readShort() -
readInt
public int readInt() -
readLong
public long readLong() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-