Nuxeo Enterprise Platform 5.4

org.nuxeo.runtime.services.streaming
Class ByteArraySource

java.lang.Object
  extended by org.nuxeo.runtime.services.streaming.AbstractStreamSource
      extended by org.nuxeo.runtime.services.streaming.ByteArraySource
All Implemented Interfaces:
StreamSource

public class ByteArraySource
extends AbstractStreamSource

Author:
Bogdan Stefanescu

Constructor Summary
ByteArraySource(byte[] bytes)
           
 
Method Summary
 boolean canReopen()
           
 byte[] getBytes()
           
 long getLength()
           
 java.io.InputStream getStream()
           
 
Methods inherited from class org.nuxeo.runtime.services.streaming.AbstractStreamSource
copyTo, copyTo, destroy, getString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArraySource

public ByteArraySource(byte[] bytes)
Method Detail

getLength

public long getLength()
               throws java.io.IOException
Specified by:
getLength in interface StreamSource
Overrides:
getLength in class AbstractStreamSource
Throws:
java.io.IOException

canReopen

public boolean canReopen()
Specified by:
canReopen in interface StreamSource
Overrides:
canReopen in class AbstractStreamSource

getStream

public java.io.InputStream getStream()
                              throws java.io.IOException
Throws:
java.io.IOException

getBytes

public byte[] getBytes()
                throws java.io.IOException
Specified by:
getBytes in interface StreamSource
Overrides:
getBytes in class AbstractStreamSource
Throws:
java.io.IOException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.