Package opendap.dap

Class HeaderInputStream

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class HeaderInputStream
    extends FilterInputStream
    The HeaderInputStream filters the input to only read lines of text until the "Data:" line. This is required because overzealous buffering in the DDSParser will read the data as well as the DDS otherwise.
    • Constructor Detail

      • HeaderInputStream

        public HeaderInputStream​(InputStream in)
        Construct a new HeaderInputStream.
    • Method Detail

      • markSupported

        public boolean markSupported()
        Returns that we don't support the mark() and reset() methods.
        Overrides:
        markSupported in class FilterInputStream
      • read

        public int read​(byte[] b,
                        int off,
                        int len)
                 throws IOException
        Reads up to len bytes of data from this input stream into an array of bytes. This method blocks until some input is available.
        Overrides:
        read in class FilterInputStream
        Throws:
        IOException
      • skip

        public long skip​(long n)
        Skips over and discards n bytes of data from the input stream.
        Overrides:
        skip in class FilterInputStream