com.vividsolutions.jts.io

Class InputStreamInStream

Implemented Interfaces:
InStream

public class InputStreamInStream
extends java.lang.Object
implements InStream

An adapter to allow an InputStream to be used as an InStream

Constructor Summary

InputStreamInStream(InputStream is)

Method Summary

void
read(byte[] buf)
Reads buf.length bytes from the input stream and stores them in the supplied buffer.

Constructor Details

InputStreamInStream

public InputStreamInStream(InputStream is)

Method Details

read

public void read(byte[] buf)
            throws IOException
Reads buf.length bytes from the input stream and stores them in the supplied buffer.
Specified by:
read in interface InStream
Parameters:
buf - the buffer to receive the bytes