Class BeLeDataInputStream

  • All Implemented Interfaces:
    Closeable, DataInput, AutoCloseable

    @Deprecated
    public class BeLeDataInputStream
    extends DataInputStream
    Deprecated.
    not part of public API.
    Big-endian little-endian data input stream, from which numbers in both big- and little-endian representations can be read. This is needed for ESRI shapefiles, for example, since they contain both big- and little-endian representations.
    • Constructor Detail

      • BeLeDataInputStream

        public BeLeDataInputStream​(InputStream inputStream)
        Deprecated.
        Construct a bigEndian-littleEndian input stream from an input stream.
        Parameters:
        inputStream - from which to read
      • BeLeDataInputStream

        public BeLeDataInputStream​(String filename)
                            throws IOException
        Deprecated.
        Construct a bigEndian-littleEndian input stream from a file.
        Parameters:
        filename - of file
        Throws:
        IOException
      • BeLeDataInputStream

        public BeLeDataInputStream​(URL url)
                            throws IOException
        Deprecated.
        Construct a bigEndian-littleEndian input stream from a URL.
        Parameters:
        url - of remote data
        Throws:
        IOException
    • Method Detail

      • readLEInt

        public int readLEInt()
                      throws IOException
        Deprecated.
        read an int in little endian format
        Returns:
        int created from next 4 bytes in stream, in littleEndian order
        Throws:
        IOException
      • readLEDouble

        public double readLEDouble()
                            throws IOException
        Deprecated.
        read a double in little endian format
        Returns:
        double from next 8 bytes in stream, littleEndian order
        Throws:
        IOException
      • readLEDoubles

        public final void readLEDoubles​(double[] d,
                                        int n)
                                 throws IOException
        Deprecated.
        Reads n little-endian doubles from a random access file.

        This method is provided for speed when accessing a number of consecutive values of the same type.

        Parameters:
        d - the buffer into which the doubles are read
        n - number of little-endian doubles to read
        Throws:
        IOException
      • readLELong

        public long readLELong()
                        throws IOException
        Deprecated.
        read a long in little endian format
        Returns:
        long from next 8 bytes in stream, littleEndian order
        Throws:
        IOException
      • readLELongs

        public final void readLELongs​(long[] lbuf,
                                      int n)
                               throws IOException
        Deprecated.
        Reads n little-endian longs from a random access file.

        This method is provided for speed when accessing a number of consecutive values of the same type.

        Parameters:
        lbuf - the buffer into which the longs are read
        n - the number of little-endian longs to read
        Throws:
        IOException