Package com.mckoi.database.global
Class StringObject
java.lang.Object
com.mckoi.database.global.StringObject
- All Implemented Interfaces:
StringAccessor
,Serializable
A concrete implementation of StringAccessor that uses a java.lang.String
object.
- Author:
- Tobias Downer
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringObject
fromString
(String str) Static method that returns a StringObject from the given java.lang.String.Returns a Reader that can read from the string.int
length()
Returns the length of the string.toString()
Returns this object as a java.lang.String object (easy!)
-
Method Details
-
length
public int length()Returns the length of the string.- Specified by:
length
in interfaceStringAccessor
-
getReader
Returns a Reader that can read from the string.- Specified by:
getReader
in interfaceStringAccessor
-
toString
Returns this object as a java.lang.String object (easy!)- Specified by:
toString
in interfaceStringAccessor
- Overrides:
toString
in classObject
-
fromString
Static method that returns a StringObject from the given java.lang.String.
-