public abstract class CmBufferWriter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.ByteBuffer |
mBuffer |
protected java.nio.ByteBuffer |
mCharVarcharColumnBuffer |
protected java.nio.charset.CharsetEncoder |
mDBEncoder |
protected java.nio.charset.CharsetEncoder |
mNCharEncoder |
protected java.nio.charset.CharsetEncoder |
mNLiteralEncoder |
| Constructor and Description |
|---|
CmBufferWriter() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
checkWritable(int aNeedToWrite)
Buffer ¿¡ ¾µ µ¥ÀÌÅÍ °ø°£ÀÌ ÃæºÐÇÑÁö ¿©ºÎ¸¦ È®ÀÎÇÏ¿©, ÃæºÐÇÏÁö ¾ÊÀ¸¸é ÇÊ¿äÇÑ °ø°£À» ¸¸µå´Â ÇÔ¼ö
CmChannel °ú ListBufferHandle ¿¡¼ °¢ÀÚ¿¡ ¸Â°Ô ±¸ÇöÇÑ´Ù.
|
java.nio.charset.CoderResult |
encodeString(java.lang.String aValue,
java.nio.ByteBuffer aBuf) |
int |
prepareToWriteString(java.lang.String aValue,
int aConvType) |
void |
setCharset(java.nio.charset.Charset aCharset,
java.nio.charset.Charset aNCharset) |
void |
writeByte(byte aValue) |
void |
writeBytes(byte[] aValue) |
abstract void |
writeBytes(java.nio.ByteBuffer aValue)
ByteBuffer °´Ã¼¸¦ Buffer ¿¡ »ðÀÔÇÏ´Â ÇÔ¼ö
CmChannel °ú ListBufferHandle ¿¡¼ °¢ÀÚ¿¡ ¸Â°Ô ±¸ÇöÇÑ´Ù.
|
void |
writeDouble(double aValue) |
void |
writeFloat(float aValue) |
void |
writeInt(int aValue) |
void |
writeLong(long aValue) |
void |
writePreparedString() |
void |
writeShort(short aValue) |
void |
writeUnsignedInt(long aValue) |
protected java.nio.charset.CharsetEncoder mDBEncoder
protected java.nio.charset.CharsetEncoder mNCharEncoder
protected java.nio.charset.CharsetEncoder mNLiteralEncoder
protected java.nio.ByteBuffer mBuffer
protected java.nio.ByteBuffer mCharVarcharColumnBuffer
public abstract void checkWritable(int aNeedToWrite)
throws java.sql.SQLException
aNeedToWrite - µ¥ÀÌŸ¸¦ ¾²±â À§ÇØ ÇÊ¿äÇÑ bytes ¼ýÀÚjava.sql.SQLException - µ¥ÀÌŸ Àü¼Û¿¡ ½ÇÆÐÇßÀ» °æ¿ìpublic abstract void writeBytes(java.nio.ByteBuffer aValue)
throws java.sql.SQLException
aValue - Buffer ¿¡ ÀúÀåÇÒ ByteBuffer °´Ã¼java.sql.SQLException - µ¥ÀÌŸ Àü¼Û¿¡ ½ÇÆÐÇßÀ» °æ¿ìpublic int prepareToWriteString(java.lang.String aValue,
int aConvType)
public void writePreparedString()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.nio.charset.CoderResult encodeString(java.lang.String aValue,
java.nio.ByteBuffer aBuf)
public void writeByte(byte aValue)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeShort(short aValue)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeInt(int aValue)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeUnsignedInt(long aValue)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeLong(long aValue)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeFloat(float aValue)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeDouble(double aValue)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void writeBytes(byte[] aValue)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void setCharset(java.nio.charset.Charset aCharset,
java.nio.charset.Charset aNCharset)