Class StreamInterceptor.RewindableByteArrayOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Enclosing class:
    StreamInterceptor

    static class StreamInterceptor.RewindableByteArrayOutputStream
    extends java.io.ByteArrayOutputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Deque<java.lang.Integer> markedPositions  
      • Fields inherited from class java.io.ByteArrayOutputStream

        buf, count
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) boolean isMarked()  
      (package private) void mark()  
      (package private) java.lang.String rewind()  
      • Methods inherited from class java.io.ByteArrayOutputStream

        close, reset, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeTo
      • Methods inherited from class java.io.OutputStream

        flush, nullOutputStream, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • markedPositions

        private final java.util.Deque<java.lang.Integer> markedPositions
    • Constructor Detail

      • RewindableByteArrayOutputStream

        RewindableByteArrayOutputStream()
    • Method Detail

      • isMarked

        boolean isMarked()
      • mark

        void mark()
      • rewind

        java.lang.String rewind()