|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnl.knaw.dans.common.dbflib.Value
nl.knaw.dans.common.dbflib.StringValue
public class StringValue
Represents a string value in a record (a CHARACTER or MEMO type field value).
| Field Summary |
|---|
| Fields inherited from class nl.knaw.dans.common.dbflib.Value |
|---|
typed |
| Constructor Summary | |
|---|---|
StringValue(String stringValue)
Creates a new string value that uses the platform's default character set. |
|
StringValue(String stringValue,
String charsetName)
Creates a new StringValue object. |
|
| Method Summary | |
|---|---|
protected byte[] |
doGetRawValue(Field field)
Converts the typed value to a byte array, according to the field specifications provided. |
protected Object |
doGetTypedValue(byte[] rawValue)
Converts the raw bytes to a Java object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringValue(String stringValue,
String charsetName)
stringValue - aStringcharsetName - the character set to use when encoding and decoding this string valuepublic StringValue(String stringValue)
stringValue - | Method Detail |
|---|
protected Object doGetTypedValue(byte[] rawValue)
Value
doGetTypedValue in class Value
protected byte[] doGetRawValue(Field field)
throws ValueTooLargeException
Value
doGetRawValue in class Valuefield - the field specifications
ValueTooLargeException - if the value is too large for the
field
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||