Class RenewableCipherLiteInputStream

  • All Implemented Interfaces:
    com.amazonaws.internal.MetricAware, com.amazonaws.internal.Releasable, Closeable, AutoCloseable

    public final class RenewableCipherLiteInputStream
    extends CipherLiteInputStream
    A specific kind of CipherLiteInputStream that supports partial mark-and-reset in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).
    • Constructor Detail

      • RenewableCipherLiteInputStream

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

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

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

        protected RenewableCipherLiteInputStream​(InputStream is)
    • Method Detail

      • markSupported

        public boolean markSupported()
        Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).
        Overrides:
        markSupported in class CipherLiteInputStream
      • mark

        public void mark​(int readlimit)
        Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).
        Overrides:
        mark in class CipherLiteInputStream
        Throws:
        UnsupportedOperationException - if mark is called after this stream has been accessed.
      • reset

        public void reset()
                   throws IOException
        Resets back to the very beginning of the stream.

        Mark and reset is currently only partially supported, in the sense that, if the underlying input stream supports mark-and-reset, this input stream can then be marked at and get reset back to the very beginning of the stream (but not anywhere else).

        Overrides:
        reset in class CipherLiteInputStream
        Throws:
        IOException