org.nuxeo.runtime.services.streaming
Class AbstractStreamSource
java.lang.Object
org.nuxeo.runtime.services.streaming.AbstractStreamSource
- All Implemented Interfaces:
- StreamSource
- Direct Known Subclasses:
- ByteArraySource, FileSource, InputStreamSource, MyfacesUploadedFileStreamSource, StringSource, TrinidadUploadedFileStreamSource, UploadedFileStreamSource, URLSource, ZipEntrySource
public abstract class AbstractStreamSource
- extends Object
- implements StreamSource
- Author:
- Bogdan Stefanescu
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStreamSource
public AbstractStreamSource()
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
Copyright ? 2007 Nuxeo SAS. All Rights Reserved.