public interface IBufferFactoryComponent extends IComponent
IPolicy may
legitimately wish to construct a new buffer (e.g. caching), and therefore needs a mechanism to efficiently
get a new IApimanBuffer buffer with a native implementation.| Modifier and Type | Method and Description |
|---|---|
IApimanBuffer |
createBuffer()
Instantiate an
IApimanBuffer. |
IApimanBuffer |
createBuffer(byte[] byteData)
Instantiate an
IApimanBuffer with Byte array. |
IApimanBuffer |
createBuffer(int size)
Instantiate an
IApimanBuffer of given size. |
IApimanBuffer |
createBuffer(String stringData)
Instantiate an
IApimanBuffer with String. |
IApimanBuffer |
createBuffer(String stringData,
String enc)
Instantiate an
IApimanBuffer with String. |
IApimanBuffer createBuffer()
IApimanBuffer.IApimanBuffer createBuffer(int size)
IApimanBuffer of given size.size - buffer sizeIApimanBuffer createBuffer(String stringData)
IApimanBuffer with String.stringData - string to instantiate bufferIApimanBuffer createBuffer(String stringData, String enc)
IApimanBuffer with String.stringData - string to instantiate bufferenc - encoding of stringIApimanBuffer createBuffer(byte[] byteData)
IApimanBuffer with Byte array.byteData - byte array data to instantiate bufferCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.