|
JAPI 0_6-alpha-2 Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.japi.io.ARGVEnumeration
public class ARGVEnumeration
Implementation of Enumeration for ARGV.
Used by ARGVInputStream and ARGVReader.
This class looks as if it could instead be an Iterator, but it is intended for use with SequenceInputStream.
ARGVInputStream,
ARGVReader| Constructor Summary | |
|---|---|
ARGVEnumeration(String... args)
Create an ARGVEnumeration. |
|
ARGVEnumeration(ThrowableHandler handler,
String... args)
Create an ARGVEnumeration. |
|
| Method Summary | |
|---|---|
void |
addThrowableHandler(ThrowableHandler handler)
Register an exception handler. |
String |
getCurrentFilename()
Get the name of the current file. |
boolean |
hasMoreElements()
|
protected void |
log(Exception e)
Log an exception. |
InputStream |
nextElement()
|
void |
removeThrowableHandler(ThrowableHandler handler)
Unregister an exception handler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ARGVEnumeration(String... args)
args - Command line arguments or some other String array containing 0 or more file names.
public ARGVEnumeration(ThrowableHandler handler,
String... args)
handler - ThrowableHandler to addargs - Command line arguments or some other String array containing 0 or more file names.| Method Detail |
|---|
protected void log(Exception e)
e - Exception to logpublic void addThrowableHandler(ThrowableHandler handler)
handler - New ThrowableHandlerpublic String getCurrentFilename()
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<InputStream>Enumerationpublic InputStream nextElement()
nextElement in interface Enumeration<InputStream>Elements returned are InputStreams.public void removeThrowableHandler(ThrowableHandler handler)
handler - ThrowableHandler to be removed
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||