| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
package org.locationtech.jts.io; |
| 13 |
|
| 14 |
import java.io.IOException; |
| 15 |
|
| 16 |
/** |
| 17 |
* A interface for classes providing an input stream of bytes. |
| 18 |
* This interface is similar to the Java <code>InputStream</code>, |
| 19 |
* but with a narrower interface to make it easier to implement. |
| 20 |
* |
| 21 |
*/ |
| 22 |
public interface InStream |
| 23 |
{ |
| 24 |
/** |
| 25 |
* Reads <code>buf.length</code> bytes from the input stream |
| 26 |
* and stores them in the supplied buffer. |
| 27 |
* |
| 28 |
* @param buf the buffer to receive the bytes |
| 29 |
* |
| 30 |
* @throws IOException if an I/O error occurs |
| 31 |
*/ |
| 32 |
void read(byte[] buf) throws IOException; |
| 33 |
} |
| 34 |
|