Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.core.storage.sql.DefaultBinaryManager.NullBinaryScrambler
All Implemented Interfaces:
BinaryScrambler
Enclosing class:
DefaultBinaryManager

public static class DefaultBinaryManager.NullBinaryScrambler
extends Object
implements BinaryScrambler

A BinaryScrambler that does nothing.


Field Summary
static BinaryScrambler INSTANCE
           
 
Constructor Summary
DefaultBinaryManager.NullBinaryScrambler()
           
 
Method Summary
 Binary getUnscrambledBinary(File file, String digest, String repoName)
          Gets an unscrambled Binary for the given file.
 void reset()
          Reset scrambling from start.
 void scrambleBuffer(byte[] buf, int off, int n)
          Scramble a buffer at the given offset for n bytes.
 void skip(long n)
          Skips n bytes during unscrambling.
 void unscrambleBuffer(byte[] buf, int off, int n)
          Unscramble a buffer at the given offset for n bytes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final BinaryScrambler INSTANCE
Constructor Detail

DefaultBinaryManager.NullBinaryScrambler

public DefaultBinaryManager.NullBinaryScrambler()
Method Detail

scrambleBuffer

public void scrambleBuffer(byte[] buf,
                           int off,
                           int n)
Description copied from interface: BinaryScrambler
Scramble a buffer at the given offset for n bytes.

Specified by:
scrambleBuffer in interface BinaryScrambler

unscrambleBuffer

public void unscrambleBuffer(byte[] buf,
                             int off,
                             int n)
Description copied from interface: BinaryScrambler
Unscramble a buffer at the given offset for n bytes.

Specified by:
unscrambleBuffer in interface BinaryScrambler

getUnscrambledBinary

public Binary getUnscrambledBinary(File file,
                                   String digest,
                                   String repoName)
Description copied from interface: BinaryScrambler
Gets an unscrambled Binary for the given file.

Specified by:
getUnscrambledBinary in interface BinaryScrambler

skip

public void skip(long n)
Description copied from interface: BinaryScrambler
Skips n bytes during unscrambling.

Specified by:
skip in interface BinaryScrambler

reset

public void reset()
Description copied from interface: BinaryScrambler
Reset scrambling from start.

Specified by:
reset in interface BinaryScrambler

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.