ca.krasnay.scaffold.io
Interface Source

All Known Implementing Classes:
ByteArraySource, FileSource, InputStreamSource, ResourceSource, StringSource, UncachedResourceSource, UrlSource

public interface Source

Internal interface representing a source of an input stream.

Author:
John Krasnay

Method Summary
 void close(InputStream in)
          Closes the given input stream.
 InputStream getInputStream()
          Returns a new input stream on the source.
 

Method Detail

getInputStream

InputStream getInputStream()
                           throws IOException
Returns a new input stream on the source.

Throws:
IOException

close

void close(InputStream in)
Closes the given input stream.

Parameters:
in - Stream returned by getInputStream(). May be null.


Copyright © 2015. All rights reserved.