pmp
Interface InputSource

All Superinterfaces:
java.io.Closeable
All Known Implementing Classes:
RandomInputSource, StringInputSource

public interface InputSource
extends java.io.Closeable

Represents abstract input source used by macroprocessor's InputQueue.

Note: You can get naming conflict with class org.xml.sax.InputSource.

Title: PMP: Macroprocessor

Description: Java macroprocessor

Copyright: Copyright (c) 2005

Version:
1.0
Author:
Luděk Hlaváček

Method Summary
 void close()
          Closes source.
 java.lang.String read(int maxLength)
          Reads up to length bytes from input.
 

Method Detail

read

java.lang.String read(int maxLength)
Reads up to length bytes from input. If end of source was reached (end of file, socket closed or something like that) returns empty string.

Parameters:
maxLength - maximal length of result; must not be zero!
Returns:
returned string.

close

void close()
Closes source. Macroprocessor will not call read after calling this method.

Specified by:
close in interface java.io.Closeable