Mp3dings 
20100427

de.mospace.lang
Interface ProcessRunnable.Input

All Known Implementing Classes:
ProcessRunnable.FileInput, ProcessRunnable.StreamInput
Enclosing class:
ProcessRunnable

protected static interface ProcessRunnable.Input

A common interface for various kinds of byte sources.


Method Summary
 void closeInputStream(InputStream stream)
          Signals that no more bytes will be read from the specified input stream.
 InputStream openInputStream()
          Opens and/or returns this byte source as an input stream.
 

Method Detail

openInputStream

InputStream openInputStream()
                            throws IOException
Opens and/or returns this byte source as an input stream.

Returns:
the input stream for this byte source
Throws:
IOException

closeInputStream

void closeInputStream(InputStream stream)
                      throws IOException
Signals that no more bytes will be read from the specified input stream. Depending on the kind of input the input stream may or may not be closed by this method.

Parameters:
stream - an input stream obtained from a previous call to openInputStream().
Throws:
IOException

Mp3dings 
20100427