MPXJ: Microsoft Project Exchange

net.sf.mpxj.mpp
Class EncryptedDocumentInputStream

Package class diagram package EncryptedDocumentInputStream
java.lang.Object
  extended by java.io.InputStream
      extended by net.sf.mpxj.mpp.EncryptedDocumentInputStream
All Implemented Interfaces:
java.io.Closeable

final class EncryptedDocumentInputStream
extends java.io.InputStream

This class wraps the POI DocumentInputStream class to allow data to be decrypted before passing it back to the caller.


Constructor Summary
EncryptedDocumentInputStream(DocumentEntry entry, int mask)
          Constructor.
 
Method Summary
 int available()
          
 void close()
          
 void mark(int readlimit)
          
 boolean markSupported()
          
 int read()
          
 int read(byte[] b, int off, int len)
          
 void reset()
          
 long skip(long n)
          
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptedDocumentInputStream

public EncryptedDocumentInputStream(DocumentEntry entry,
                                    int mask)
                             throws java.io.IOException
Constructor.

Parameters:
entry - file entry
mask - the mask used to decrypt the stream.
Throws:
java.io.IOException
Method Detail

read

public int read()
         throws java.io.IOException

Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException

Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

available

public int available()

Overrides:
available in class java.io.InputStream

close

public void close()

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream

mark

public void mark(int readlimit)

Overrides:
mark in class java.io.InputStream

markSupported

public boolean markSupported()

Overrides:
markSupported in class java.io.InputStream

reset

public void reset()

Overrides:
reset in class java.io.InputStream

skip

public long skip(long n)
          throws java.io.IOException

Overrides:
skip in class java.io.InputStream
Throws:
java.io.IOException


Copyright © 2000-2009 Packwood Software. All Rights Reserved.