com.liferay.portal.kernel.io
Class Serializer
java.lang.Object
com.liferay.portal.kernel.io.Serializer
public class Serializer
- extends Object
- See Also:
Deserializer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bufferQueueThreadLocal
protected static final ThreadLocal<Serializer.BufferQueue> bufferQueueThreadLocal
THREADLOCAL_BUFFER_COUNT_LIMIT
protected static final int THREADLOCAL_BUFFER_COUNT_LIMIT
THREADLOCAL_BUFFER_COUNT_MIN
protected static final int THREADLOCAL_BUFFER_COUNT_MIN
- See Also:
- Constant Field Values
THREADLOCAL_BUFFER_SIZE_LIMIT
protected static final int THREADLOCAL_BUFFER_SIZE_LIMIT
THREADLOCAL_BUFFER_SIZE_MIN
protected static final int THREADLOCAL_BUFFER_SIZE_MIN
- See Also:
- Constant Field Values
buffer
protected byte[] buffer
index
protected int index
Serializer
public Serializer()
toByteBuffer
public ByteBuffer toByteBuffer()
writeBoolean
public void writeBoolean(boolean b)
writeByte
public void writeByte(byte b)
writeChar
public void writeChar(char c)
writeDouble
public void writeDouble(double d)
writeFloat
public void writeFloat(float f)
writeInt
public void writeInt(int i)
writeLong
public void writeLong(long l)
writeObject
public void writeObject(Serializable serializable)
writeShort
public void writeShort(short s)
writeString
public void writeString(String s)
writeTo
public void writeTo(OutputStream outputStream)
throws IOException
- Throws:
IOException
getBuffer
protected final byte[] getBuffer(int ensureExtraSpace)
- This method is final so that JIT can inline it.