Class S2PointVectorCoder.ByteArrayOutput

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

    private static class S2PointVectorCoder.ByteArrayOutput
    extends java.io.ByteArrayOutputStream
    A thin wrapper over ByteArrayOutputStream which allows the last written byte to be removed.
    • Field Summary

      • Fields inherited from class java.io.ByteArrayOutputStream

        buf, count
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ByteArrayOutput()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) int removeLast()
      Removes and returns the last written byte.
      • 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
    • Constructor Detail

      • ByteArrayOutput

        private ByteArrayOutput()
    • Method Detail

      • removeLast

        int removeLast()
        Removes and returns the last written byte.