Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.io
Class Serializer

java.lang.Object
  extended by com.liferay.portal.kernel.io.Serializer

public class Serializer
extends Object

See Also:
Deserializer

Nested Class Summary
protected static class Serializer.BufferNode
           
protected  class Serializer.BufferOutputStream
           
protected static class Serializer.BufferQueue
           
 
Field Summary
protected  byte[] buffer
           
protected static ThreadLocal<Serializer.BufferQueue> bufferQueueThreadLocal
           
protected  int index
           
protected static int THREADLOCAL_BUFFER_COUNT_LIMIT
           
protected static int THREADLOCAL_BUFFER_COUNT_MIN
           
protected static int THREADLOCAL_BUFFER_SIZE_LIMIT
           
protected static int THREADLOCAL_BUFFER_SIZE_MIN
           
 
Constructor Summary
Serializer()
           
 
Method Summary
protected  byte[] getBuffer(int ensureExtraSpace)
          This method is final so that JIT can inline it.
 ByteBuffer toByteBuffer()
           
 void writeBoolean(boolean b)
           
 void writeByte(byte b)
           
 void writeChar(char c)
           
 void writeDouble(double d)
           
 void writeFloat(float f)
           
 void writeInt(int i)
           
 void writeLong(long l)
           
 void writeObject(Serializable serializable)
           
 void writeShort(short s)
           
 void writeString(String s)
           
 void writeTo(OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Serializer

public Serializer()
Method Detail

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.


Liferay 6.1.2-ce-ga3