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 StringObjectfromString(String str) Static method that returns a StringObject from the given java.lang.String.Returns a Reader that can read from the string.intlength()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:
lengthin interfaceStringAccessor
-
getReader
Returns a Reader that can read from the string.- Specified by:
getReaderin interfaceStringAccessor
-
toString
Returns this object as a java.lang.String object (easy!)- Specified by:
toStringin interfaceStringAccessor- Overrides:
toStringin classObject
-
fromString
Static method that returns a StringObject from the given java.lang.String.
-