Package org.locationtech.jts.io
Interface InStream
-
- All Known Implementing Classes:
ByteArrayInStream,InputStreamInStream
public interface InStreamA interface for classes providing an input stream of bytes. This interface is similar to the JavaInputStream, but with a narrower interface to make it easier to implement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intread(byte[] buf)Readsbuf.lengthbytes from the input stream and stores them in the supplied buffer.
-
-
-
Method Detail
-
read
int read(byte[] buf) throws IOException
Readsbuf.lengthbytes from the input stream and stores them in the supplied buffer.- Parameters:
buf- the buffer to receive the bytes- Returns:
- the number of bytes read, or -1 if at end-of-file
- Throws:
IOException- if an I/O error occurs
-
-