Class CipherLiteInputStream

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.amazonaws.internal.SdkFilterInputStream
com.amazonaws.services.s3.internal.crypto.CipherLiteInputStream
All Implemented Interfaces:
com.amazonaws.internal.MetricAware, com.amazonaws.internal.Releasable, Closeable, AutoCloseable
Direct Known Subclasses:
RenewableCipherLiteInputStream

public class CipherLiteInputStream extends com.amazonaws.internal.SdkFilterInputStream
Author:
Hanson Char
See Also:
  • CipherLite
  • GCMCipherLite
  • Constructor Details

    • CipherLiteInputStream

      public CipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite cipherLite)
    • CipherLiteInputStream

      public CipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize)
    • CipherLiteInputStream

      public CipherLiteInputStream(InputStream is, com.amazonaws.services.s3.internal.crypto.CipherLite c, int buffsize, boolean multipart, boolean lastMultiPart)
    • CipherLiteInputStream

      protected CipherLiteInputStream(InputStream is)
  • Method Details

    • read

      public int read() throws IOException
      Overrides:
      read in class com.amazonaws.internal.SdkFilterInputStream
      Throws:
      IOException
    • read

      public int read(byte[] b) throws IOException
      Overrides:
      read in class FilterInputStream
      Throws:
      IOException
    • read

      public int read(byte[] buf, int off, int target_len) throws IOException
      Overrides:
      read in class com.amazonaws.internal.SdkFilterInputStream
      Throws:
      IOException
    • skip

      public long skip(long n) throws IOException
      Overrides:
      skip in class com.amazonaws.internal.SdkFilterInputStream
      Throws:
      IOException
    • available

      public int available()
      Overrides:
      available in class com.amazonaws.internal.SdkFilterInputStream
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class com.amazonaws.internal.SdkFilterInputStream
      Throws:
      IOException
    • markSupported

      public boolean markSupported()
      Overrides:
      markSupported in class com.amazonaws.internal.SdkFilterInputStream
    • mark

      public void mark(int readlimit)
      Overrides:
      mark in class com.amazonaws.internal.SdkFilterInputStream
    • reset

      public void reset() throws IOException

      Subclassing this method would need to take care in keeping all internal states consistent. REF: TT0036173414, ISSUE-JAVA-547.

      Overrides:
      reset in class com.amazonaws.internal.SdkFilterInputStream
      Throws:
      IOException