The only purpose of this class is to make certain constants and methods that are package private available outside of this package for testing purposes. See DERBY-2031.
| Modifier and Type | Field and Description |
|---|---|
| private final CcsidManager | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final CodePointNameTable | CP_NAMES
Shared code point name table (write once, then only reads/lookups). |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private final OutputStream | |
| private final DDMReader | |
| private final Socket | |
| public static final byte | |
| private final DDMWriter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public byte[] | Returns: a byte array according to the CCSID manager.String to convert str)Converts a string to a byte array according to the CCSID manager. |
| public Integer | Returns: The code point identifier, ornull if the code point
name is unknown.the name of the code point to look up codePointName)Returns the code point id for the given code point name. |
| public String | Returns: Code point name, ornull if code point is unknown.code point to look up codePoint)Returns the name of the given code point. |
| public boolean | |
| public boolean | |
| public boolean | |
| public byte | |
| public byte[] | |
| public int | |
| public int | |
| public int | |
| public void | |
| public String | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| private static IOException | wrap(DRDAProtocolException dpe)
Wraps a protocol exception in a generic I/O exception, since
|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| ccsidManager | back to summary |
|---|---|
| private final CcsidManager ccsidManager | |
| CP_CODPNT | back to summary |
|---|---|
| public static final int CP_CODPNT | |
| CP_MGRLVLLS | back to summary |
|---|---|
| public static final int CP_MGRLVLLS | |
| CP_MGRLVLRM | back to summary |
|---|---|
| public static final int CP_MGRLVLRM | |
| CP_NAMES | back to summary |
|---|---|
| private static final CodePointNameTable CP_NAMES Shared code point name table (write once, then only reads/lookups). | |
| CP_PRCCNVCD | back to summary |
|---|---|
| public static final int CP_PRCCNVCD | |
| CP_PRCCNVRM | back to summary |
|---|---|
| public static final int CP_PRCCNVRM | |
| CP_SECCHKCD | back to summary |
|---|---|
| public static final int CP_SECCHKCD | |
| CP_SECMEC | back to summary |
|---|---|
| public static final int CP_SECMEC | |
| CP_SQLCARD | back to summary |
|---|---|
| public static final int CP_SQLCARD | |
| CP_SVRCOD | back to summary |
|---|---|
| public static final int CP_SVRCOD | |
| CP_SYNERRCD | back to summary |
|---|---|
| public static final int CP_SYNERRCD | |
| CP_SYNTAXRM | back to summary |
|---|---|
| public static final int CP_SYNTAXRM | |
| out | back to summary |
|---|---|
| private final OutputStream out | |
| reader | back to summary |
|---|---|
| private final DDMReader reader | |
| socket | back to summary |
|---|---|
| private final Socket socket | |
| SPACE | back to summary |
|---|---|
| public static final byte SPACE | |
| writer | back to summary |
|---|---|
| private final DDMWriter writer | |
| ProtocolTestAdapter | back to summary |
|---|---|
| public ProtocolTestAdapter(Socket socket) throws IOException Initializes the adapter for use with the given socket.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Closes the resources associated with the adapter.
| |
| convertFromJavaString | back to summary |
|---|---|
| public byte[] convertFromJavaString(String str) Converts a string to a byte array according to the CCSID manager.
| |
| decodeCodePoint | back to summary |
|---|---|
| public Integer decodeCodePoint(String codePointName) Returns the code point id for the given code point name. | |
| lookupCodePoint | back to summary |
|---|---|
| public String lookupCodePoint(int codePoint) Returns the name of the given code point.
| |
| rMoreData | back to summary |
|---|---|
| public boolean rMoreData() | |
| rMoreDdmData | back to summary |
|---|---|
| public boolean rMoreDdmData() | |
| rMoreDssData | back to summary |
|---|---|
| public boolean rMoreDssData() | |
| rReadByte | back to summary |
|---|---|
| public byte rReadByte() throws IOException | |
| rReadBytes | back to summary |
|---|---|
| public byte[] rReadBytes() throws IOException | |
| rReadLengthAndCodePoint | back to summary |
|---|---|
| public int rReadLengthAndCodePoint(boolean f) throws IOException | |
| rReadNetworkInt | back to summary |
|---|---|
| public int rReadNetworkInt() throws IOException | |
| rReadNetworkShort | back to summary |
|---|---|
| public int rReadNetworkShort() throws IOException | |
| rReadReplyDss | back to summary |
|---|---|
| public void rReadReplyDss() throws IOException | |
| rReadString | back to summary |
|---|---|
| public String rReadString(int length, String enc) throws IOException | |
| rSkipBytes | back to summary |
|---|---|
| public void rSkipBytes() throws IOException | |
| rSkipDdm | back to summary |
|---|---|
| public void rSkipDdm() throws IOException | |
| rSkipDss | back to summary |
|---|---|
| public void rSkipDss() throws IOException | |
| setUtf8Ccsid | back to summary |
|---|---|
| public void setUtf8Ccsid() Instructs the | |
| wCreateDssObject | back to summary |
|---|---|
| public void wCreateDssObject() | |
| wCreateDssReply | back to summary |
|---|---|
| public void wCreateDssReply() | |
| wCreateDssRequest | back to summary |
|---|---|
| public void wCreateDssRequest() | |
| wEndDdm | back to summary |
|---|---|
| public void wEndDdm() | |
| wEndDdmAndDss | back to summary |
|---|---|
| public void wEndDdmAndDss() | |
| wEndDss | back to summary |
|---|---|
| public void wEndDss() | |
| wEndDss | back to summary |
|---|---|
| public void wEndDss(byte b) | |
| wFlush | back to summary |
|---|---|
| public void wFlush() throws IOException | |
| wPadBytes | back to summary |
|---|---|
| public void wPadBytes(byte ch, int len) | |
| wrap | back to summary |
|---|---|
| private static IOException wrap(DRDAProtocolException dpe) Wraps a protocol exception in a generic I/O exception, since
| |
| wStartDdm | back to summary |
|---|---|
| public void wStartDdm(int cp) | |
| wWriteByte | back to summary |
|---|---|
| public void wWriteByte(int b) | |
| wWriteBytes | back to summary |
|---|---|
| public void wWriteBytes(byte[] buf) | |
| wWriteCodePoint4Bytes | back to summary |
|---|---|
| public void wWriteCodePoint4Bytes(int cp, int v) | |
| wWriteInt | back to summary |
|---|---|
| public void wWriteInt(int v) | |
| wWriteScalar1Byte | back to summary |
|---|---|
| public void wWriteScalar1Byte(int cp, int value) | |
| wWriteScalar2Bytes | back to summary |
|---|---|
| public void wWriteScalar2Bytes(int cp, int value) | |
| wWriteScalarBytes | back to summary |
|---|---|
| public void wWriteScalarBytes(int cp, byte[] buf) | |
| wWriteScalarPaddedBytes | back to summary |
|---|---|
| public void wWriteScalarPaddedBytes(int cp, byte[] buf, int length, byte ch) | |
| wWriteScalarString | back to summary |
|---|---|
| public void wWriteScalarString(int cp, String str) | |
| wWriteShort | back to summary |
|---|---|
| public void wWriteShort(int v) | |