Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql
Class DefaultBinaryManager.ScrambledStreamSource

java.lang.Object
  extended by org.nuxeo.runtime.services.streaming.AbstractStreamSource
      extended by org.nuxeo.runtime.services.streaming.FileSource
          extended by org.nuxeo.ecm.core.storage.sql.DefaultBinaryManager.ScrambledStreamSource
All Implemented Interfaces:
StreamSource
Enclosing class:
DefaultBinaryManager

public static class DefaultBinaryManager.ScrambledStreamSource
extends FileSource

A FileSource that is unscrambled on read using a BinaryScrambler.


Constructor Summary
DefaultBinaryManager.ScrambledStreamSource(File file, BinaryScrambler scrambler)
           
 
Method Summary
 File getFile()
           
 InputStream getStream()
           
 
Methods inherited from class org.nuxeo.runtime.services.streaming.FileSource
canReopen, getLength
 
Methods inherited from class org.nuxeo.runtime.services.streaming.AbstractStreamSource
copyTo, copyTo, destroy, getBytes, getString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBinaryManager.ScrambledStreamSource

public DefaultBinaryManager.ScrambledStreamSource(File file,
                                                  BinaryScrambler scrambler)
Method Detail

getFile

public File getFile()
Overrides:
getFile in class FileSource

getStream

public InputStream getStream()
                      throws IOException
Specified by:
getStream in interface StreamSource
Overrides:
getStream in class FileSource
Throws:
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.