Class DepthLimitedWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    class DepthLimitedWriter
    extends java.io.FilterWriter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.AtomicInteger depth  
      • Fields inherited from class java.io.FilterWriter

        out
      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      DepthLimitedWriter​(java.io.Writer writer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int decr()  
      int incr()  
      • Methods inherited from class java.io.FilterWriter

        close, flush, write, write, write
      • Methods inherited from class java.io.Writer

        append, append, append, nullWriter, write, write
      • Methods inherited from class java.lang.Object

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

      • depth

        private java.util.concurrent.atomic.AtomicInteger depth
    • Constructor Detail

      • DepthLimitedWriter

        public DepthLimitedWriter​(java.io.Writer writer)
    • Method Detail

      • incr

        public int incr()
      • decr

        public int decr()