Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.storage.sql
Interface BinaryScrambler

All Known Implementing Classes:
DefaultBinaryManager.NullBinaryScrambler, XORBinaryManager.XORBinaryScrambler

public interface BinaryScrambler

A scrambler/unscrambler of binaries.

Author:
Florent Guillaume

Method Summary
 Binary getUnscrambledBinary(File file, String digets, 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.
 

Method Detail

scrambleBuffer

void scrambleBuffer(byte[] buf,
                    int off,
                    int n)
Scramble a buffer at the given offset for n bytes.


unscrambleBuffer

void unscrambleBuffer(byte[] buf,
                      int off,
                      int n)
Unscramble a buffer at the given offset for n bytes.


getUnscrambledBinary

Binary getUnscrambledBinary(File file,
                            String digets,
                            String repoName)
Gets an unscrambled Binary for the given file.


skip

void skip(long n)
Skips n bytes during unscrambling.


reset

void reset()
Reset scrambling from start.


Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.