Class ObjectInputStreamInstantiator.MockStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    ObjectInputStreamInstantiator<T>

    private static class ObjectInputStreamInstantiator.MockStream
    extends java.io.InputStream
    • Constructor Summary

      Constructors 
      Constructor Description
      MockStream​(java.lang.Class<?> clazz)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void advanceBuffer()  
      int available()  
      private static void initialize()  
      int read()  
      int read​(byte[] b, int off, int len)  
      • Methods inherited from class java.io.InputStream

        close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
      • Methods inherited from class java.lang.Object

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

      • pointer

        private int pointer
      • data

        private byte[] data
      • sequence

        private int sequence
      • NEXT

        private static final int[] NEXT
      • buffers

        private byte[][] buffers
      • FIRST_DATA

        private final byte[] FIRST_DATA
      • HEADER

        private static byte[] HEADER
      • REPEATING_DATA

        private static byte[] REPEATING_DATA
    • Constructor Detail

      • MockStream

        public MockStream​(java.lang.Class<?> clazz)
    • Method Detail

      • initialize

        private static void initialize()
      • advanceBuffer

        private void advanceBuffer()
      • read

        public int read()
        Specified by:
        read in class java.io.InputStream
      • available

        public int available()
        Overrides:
        available in class java.io.InputStream
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
        Overrides:
        read in class java.io.InputStream