org.nuxeo.runtime.services.streaming
Class ByteArraySource
java.lang.Object
org.nuxeo.runtime.services.streaming.AbstractStreamSource
org.nuxeo.runtime.services.streaming.ByteArraySource
- All Implemented Interfaces:
- StreamSource
public class ByteArraySource
- extends AbstractStreamSource
- Author:
- Bogdan Stefanescu
|
Field Summary |
protected byte[] |
bytes
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bytes
protected final byte[] bytes
ByteArraySource
public ByteArraySource(byte[] bytes)
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
getBytes
public byte[] getBytes()
throws IOException
- Specified by:
getBytes in interface StreamSource- Overrides:
getBytes in class AbstractStreamSource
- Throws:
IOException
Copyright ? 2007 Nuxeo SAS. All Rights Reserved.