|
JAPI 0.9.0 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<? super FileNotFoundException> handler,
String... args)
Create an ARGVEnumeration. |
|
| Method Summary | |
|---|---|
void |
addThrowableHandler(ThrowableHandler<? super FileNotFoundException> handler)
Register an exception handler. |
String |
getCurrentFilename()
Get the name of the current file. |
boolean |
hasMoreElements()
Tests if this enumeration contains more elements. |
protected void |
log(FileNotFoundException e)
Log an exception. |
InputStream |
nextElement()
Returns the next element of this enumeration if this enumeration object has at least one more element to provide. |
void |
removeThrowableHandler(ThrowableHandler<? super FileNotFoundException> 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<? super FileNotFoundException> 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(FileNotFoundException e)
e - Exception to logpublic void addThrowableHandler(ThrowableHandler<? super FileNotFoundException> handler)
handler - New ThrowableHandlerpublic String getCurrentFilename()
public boolean hasMoreElements()
java.util.Enumeration
hasMoreElements in interface Enumeration<InputStream>true if and only if this enumeration object
contains at least one more element to provide;
false otherwise.Enumerationpublic InputStream nextElement()
java.util.Enumeration
nextElement in interface Enumeration<InputStream>Elements returned are InputStreams.public void removeThrowableHandler(ThrowableHandler<? super FileNotFoundException> 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 | |||||||||