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 java.lang.Object
- implements StreamSource
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStreamSource
public AbstractStreamSource()
getLength
public long getLength()
throws java.io.IOException
- Specified by:
getLength
in interface StreamSource
- Throws:
java.io.IOException
canReopen
public boolean canReopen()
- Specified by:
canReopen
in interface StreamSource
getBytes
public byte[] getBytes()
throws java.io.IOException
- Specified by:
getBytes
in interface StreamSource
- Throws:
java.io.IOException
getString
public java.lang.String getString()
throws java.io.IOException
- Specified by:
getString
in interface StreamSource
- Throws:
java.io.IOException
copyTo
public void copyTo(java.io.File file)
throws java.io.IOException
- Specified by:
copyTo
in interface StreamSource
- Throws:
java.io.IOException
copyTo
public void copyTo(java.io.OutputStream out)
throws java.io.IOException
- Specified by:
copyTo
in interface StreamSource
- Throws:
java.io.IOException
destroy
public void destroy()
- Specified by:
destroy
in interface StreamSource
Copyright © 2010 Nuxeo SAS. All Rights Reserved.