EchoPoint
1.0

echopoint.template
Class StringDataSource

java.lang.Object
  extended byechopoint.template.AbstractDataSource
      extended byechopoint.template.StringDataSource
All Implemented Interfaces:
DataSource, java.io.Serializable

public class StringDataSource
extends AbstractDataSource

A StringDataSource implements a DataSource for a string.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class echopoint.template.AbstractDataSource
DEFAULT_ENCODING
 
Constructor Summary
StringDataSource(java.lang.String s)
          Creates a StringDataSource with Unicode character encoding
 
Method Summary
 java.lang.String getCanonicalName()
          Returns a canonical name of this DataSource.
 java.io.Reader getInputReader()
          Gets an Reader of the File.
 long lastModified()
          Returns the time the content of this String was last modified.
 
Methods inherited from class echopoint.template.AbstractDataSource
getCharacterEncoding, setCharacterEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDataSource

public StringDataSource(java.lang.String s)
Creates a StringDataSource with Unicode character encoding

Method Detail

getCanonicalName

public java.lang.String getCanonicalName()
Returns a canonical name of this DataSource.

Specified by:
getCanonicalName in interface DataSource
Specified by:
getCanonicalName in class AbstractDataSource

getInputReader

public java.io.Reader getInputReader()
                              throws java.io.IOException
Gets an Reader of the File.

Specified by:
getInputReader in interface DataSource
Specified by:
getInputReader in class AbstractDataSource
Throws:
java.io.IOException

lastModified

public long lastModified()
Returns the time the content of this String was last modified. Always returns 1;

Specified by:
lastModified in interface DataSource
Specified by:
lastModified in class AbstractDataSource
Returns:
long a modification time

EchoPoint
1.0