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)