public class FindOptions
extends java.lang.Object
Find command and its Expressions.| Constructor | Description |
|---|---|
FindOptions() |
| Modifier and Type | Method | Description |
|---|---|---|
CommandFactory |
getCommandFactory() |
Return the command factory.
|
Configuration |
getConfiguration() |
Return the
Configuration return configuration Configuration |
java.io.PrintStream |
getErr() |
Returns the error stream to be used.
|
java.io.InputStream |
getIn() |
Returns the input stream to be used.
|
int |
getMaxDepth() |
Returns the maximum depth for applying expressions.
|
int |
getMinDepth() |
Returns the minimum depth for applying expressions.
|
java.io.PrintStream |
getOut() |
Returns the output stream to be used.
|
long |
getStartTime() |
Returns the start time of this
Find command. |
boolean |
isDepthFirst() |
Should directory tree be traversed depth first?
|
boolean |
isFollowArgLink() |
Should command line symbolic links be follows?
|
boolean |
isFollowLink() |
Should symbolic links be follows?
|
void |
setCommandFactory(CommandFactory factory) |
Set the command factory.
|
void |
setConfiguration(Configuration configuration) |
Set the
Configuration |
void |
setDepthFirst(boolean depthFirst) |
Sets flag indicating whether the expression should be applied to the
directory tree depth first.
|
void |
setErr(java.io.PrintStream err) |
Sets the error stream to be used.
|
void |
setFollowArgLink(boolean followArgLink) |
Sets flag indicating whether command line symbolic links should be
followed.
|
void |
setFollowLink(boolean followLink) |
Sets flag indicating whether symbolic links should be followed.
|
void |
setIn(java.io.InputStream in) |
Sets the input stream to be used.
|
void |
setMaxDepth(int maxDepth) |
Sets the maximum depth for applying expressions.
|
void |
setMinDepth(int minDepth) |
Sets the minimum depth for applying expressions.
|
void |
setOut(java.io.PrintStream out) |
Sets the output stream to be used.
|
void |
setStartTime(long time) |
Set the start time of this
Find command. |
public void setOut(java.io.PrintStream out)
out - output stream to be usedpublic java.io.PrintStream getOut()
public void setErr(java.io.PrintStream err)
err - error stream to be usedpublic java.io.PrintStream getErr()
public void setIn(java.io.InputStream in)
in - input stream to be usedpublic java.io.InputStream getIn()
public void setDepthFirst(boolean depthFirst)
depthFirst - true indicates depth first traversalpublic boolean isDepthFirst()
public void setFollowLink(boolean followLink)
followLink - true indicates follow linkspublic boolean isFollowLink()
public void setFollowArgLink(boolean followArgLink)
followArgLink - true indicates follow linkspublic boolean isFollowArgLink()
public long getStartTime()
Find command.public void setStartTime(long time)
Find command.time - start time (in milliseconds since epoch)public int getMinDepth()
public void setMinDepth(int minDepth)
minDepth - minimum depthpublic int getMaxDepth()
public void setMaxDepth(int maxDepth)
maxDepth - maximum depthpublic void setCommandFactory(CommandFactory factory)
factory - CommandFactorypublic CommandFactory getCommandFactory()
CommandFactorypublic void setConfiguration(Configuration configuration)
Configurationconfiguration - Configurationpublic Configuration getConfiguration()
Configuration return configuration ConfigurationCopyright © 2008–2025 Apache Software Foundation. All rights reserved.