Nuxeo Enterprise Platform 5.1

org.nuxeo.runtime.services.streaming
Class StringSource

java.lang.Object
  extended by org.nuxeo.runtime.services.streaming.AbstractStreamSource
      extended by org.nuxeo.runtime.services.streaming.StringSource
All Implemented Interfaces:
StreamSource

public class StringSource
extends AbstractStreamSource

Author:
Bogdan Stefanescu

Field Summary
protected  String string
           
 
Constructor Summary
StringSource(String string)
           
 
Method Summary
 long getLength()
           
 InputStream getStream()
           
 
Methods inherited from class org.nuxeo.runtime.services.streaming.AbstractStreamSource
canReopen, copyTo, copyTo, destroy, getBytes, getString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

string

protected final String string
Constructor Detail

StringSource

public StringSource(String string)
Method Detail

getLength

public long getLength()
               throws IOException
Specified by:
getLength in interface StreamSource
Overrides:
getLength in class AbstractStreamSource
Throws:
IOException

getStream

public InputStream getStream()
                      throws IOException
Throws:
IOException

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.