Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.runtime.services.streaming
Class AbstractStreamSource

java.lang.Object
  extended by org.nuxeo.runtime.services.streaming.AbstractStreamSource
All Implemented Interfaces:
StreamSource
Direct Known Subclasses:
ByteArraySource, FileSource, InputStreamSource, StringSource, URLSource, ZipEntrySource

public abstract class AbstractStreamSource
extends Object
implements StreamSource

Author:
Bogdan Stefanescu

Constructor Summary
AbstractStreamSource()
           
 
Method Summary
 boolean canReopen()
           
 void copyTo(File file)
           
 void copyTo(OutputStream out)
           
 void destroy()
           
 byte[] getBytes()
           
 long getLength()
           
 String getString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.runtime.services.streaming.StreamSource
getStream
 

Constructor Detail

AbstractStreamSource

public AbstractStreamSource()
Method Detail

getLength

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

canReopen

public boolean canReopen()
Specified by:
canReopen in interface StreamSource

getBytes

public byte[] getBytes()
                throws IOException
Specified by:
getBytes in interface StreamSource
Throws:
IOException

getString

public String getString()
                 throws IOException
Specified by:
getString in interface StreamSource
Throws:
IOException

copyTo

public void copyTo(File file)
            throws IOException
Specified by:
copyTo in interface StreamSource
Throws:
IOException

copyTo

public void copyTo(OutputStream out)
            throws IOException
Specified by:
copyTo in interface StreamSource
Throws:
IOException

destroy

public void destroy()
Specified by:
destroy in interface StreamSource

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.