|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lapetus_ltd.api.db.control.TLptsRowSetStringObject
public class TLptsRowSetStringObject
Class Description : This is the character set processing class for String types from the RowSet.
Constructor Summary | |
---|---|
TLptsRowSetStringObject(byte[] bytes,
java.lang.String charset)
This is the constructor of TLptsRowSetStringObject. |
|
TLptsRowSetStringObject(java.lang.String string,
byte[] bytes)
This is the constructor of TLptsRowSetStringObject. |
Method Summary | |
---|---|
java.lang.String |
getString()
Gets the string supplied to this object. |
java.lang.String |
getString(java.lang.String charSet)
Gets the string for this object using the supplied bytes and the parameter charset. |
java.lang.String |
toString()
This is identical to calling getString() on this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TLptsRowSetStringObject(byte[] bytes, java.lang.String charset)
getString()
.
getString(String)
to encode the result with the new charset.
bytes
- The raw bytes required to encode the string. These bytes normally come from the resultset.charset
- The character set to use for the encoding of the string.public TLptsRowSetStringObject(java.lang.String string, byte[] bytes)
getString()
.
getString(String)
to encode the result with the new charset.
string
- The string value to store in the object.bytes
- The raw bytes required to encode the string. These bytes normally come from the resultset.Method Detail |
---|
public java.lang.String getString()
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : N/A
Notes :
Example :
// Two different ways to set the internal string object. TLptsRowSetStringObject rco = new TLptsRowSetStringObject(stringBytes,"UTF-8"); // OR TLptsRowSetStringObject rco = new TLptsRowSetStringObject(string,stringBytes); String internalString = rco.getString(); // OR String internalString = rco.getString("UTF-8"); // assuming that the string and stringBytes are from the same string, // then the internal strings should be the same in both cases.
public java.lang.String getString(java.lang.String charSet)
Thread Safe : Yes
Spawns its own Thread : No
May Return NULL : N/A
Notes :
Example :
// Two different ways to set the internal string object. TLptsRowSetStringObject rco = new TLptsRowSetStringObject(stringBytes,"UTF-8"); // OR TLptsRowSetStringObject rco = new TLptsRowSetStringObject(string,stringBytes); String internalString = rco.getString(); // OR String internalString = rco.getString("UTF-8"); // assuming that the string and stringBytes are from the same string, // then the internal strings should be the same in both cases.
charSet
- The character set to use for encoding the bytes of this object.
public java.lang.String toString()
getString()
on this object.
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |