public class Tabby
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected org.htmlparser.lexerapplications.tabby.Tabby.Filter |
mFilter |
The file filter to apply.
|
protected int |
mTabsize |
The replacement tab stop size.
|
| Constructor | Description |
|---|---|
Tabby() |
Creates a new instance of Tabby with no file filter and a tab stop of 4.
|
Tabby(java.lang.String filter) |
Creates a new instance of Tabby using the given regular expression and
a tab stop of 4.
|
Tabby(java.lang.String filter,
int tabsize) |
Creates a new instance of Tabby.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
edit(java.io.File file) |
Process the file or directory.
|
static void |
main(java.lang.String[] args) |
Run Tabby on a file or directory.
|
protected void |
process(java.io.File file) |
Process the file or directory.
|
protected org.htmlparser.lexerapplications.tabby.Tabby.Filter mFilter
protected int mTabsize
public Tabby()
public Tabby(java.lang.String filter)
filter - The regular expression to apply to the files searched.public Tabby(java.lang.String filter,
int tabsize)
throws java.lang.IllegalArgumentException
filter - The regular expression to apply to the files searched.tabsize - The tab stop setting.java.lang.IllegalArgumentException - If tabsize is not a positive number.protected void process(java.io.File file)
file - The file to process.protected void edit(java.io.File file)
file - The file to edit.public static void main(java.lang.String[] args)
args - The command line arguments.
args[0] The file or directory to work on. args[1] Optional, the regular expression to use as a file filter args[2] Optional, the tab stop setting (integer).
HTML Parser is an open source library released under LGPL.