T
- the type used by the concrete subclass to keep track of statepublic abstract class AbstractFileSubtreeWalker<T>
extends java.lang.Object
Constructor and Description |
---|
AbstractFileSubtreeWalker() |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
handleDirectory(java.net.URL dir,
T state)
Handles encountering a directory.
|
protected abstract void |
handleFile(java.net.URL f,
T state)
Handles encountering a file.
|
void |
walkSubtree(java.net.URL url,
T state)
Walks a subtree starting from a specified file or directory.
|
public void walkSubtree(java.net.URL url, T state)
f
- a file or directorystate
- the state managed by the callerprotected abstract T handleDirectory(java.net.URL dir, T state) throws java.lang.Exception
dir
- the directory encounteredstate
- the current walking statejava.lang.Exception
- if there is an error processing the directoryprotected abstract void handleFile(java.net.URL f, T state) throws java.lang.Exception
f
- the file encounteredstate
- the current walking statejava.lang.Exception
- if there is an error processing the fileCopyright © 2010-2019 Planetary Data System. All Rights Reserved.