Nuxeo Enterprise Platform 5.4

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(java.io.File file, BinaryScrambler scrambler)
           
 
Method Summary
 java.io.File getFile()
           
 java.io.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(java.io.File file,
                                                  BinaryScrambler scrambler)
Method Detail

getFile

public java.io.File getFile()
Overrides:
getFile in class FileSource

getStream

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

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.