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, StringSource, URLSource, ZipEntrySource
public abstract class AbstractStreamSource
- extends Object
- implements StreamSource
- Author:
- Bogdan Stefanescu
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 © 2011 Nuxeo SAS. All Rights Reserved.