Class Tabby
java.lang.Object
org.htmlparser.lexerapplications.tabby.Tabby
Replace tabs with spaces.
Convert tabs to the correct number of spaces according to a tabstop,
change DOS \r\n line endings to Unix \n form, and remove trailing whitespace
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
mFilter
protected org.htmlparser.lexerapplications.tabby.Tabby.Filter mFilterThe file filter to apply. -
mTabsize
protected int mTabsizeThe replacement tab stop size.
-
-
Constructor Details
-
Tabby
public Tabby()Creates a new instance of Tabby with no file filter and a tab stop of 4. -
Tabby
Creates a new instance of Tabby using the given regular expression and a tab stop of 4.- Parameters:
filter
- The regular expression to apply to the files searched.
-
Tabby
Creates a new instance of Tabby.- Parameters:
filter
- The regular expression to apply to the files searched.tabsize
- The tab stop setting.- Throws:
IllegalArgumentException
- If tabsize is not a positive number.
-
-
Method Details
-
process
Process the file or directory.- Parameters:
file
- The file to process.
-
edit
Process the file or directory.- Parameters:
file
- The file to edit.
-
main
Run Tabby on a file or directory.- Parameters:
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).
-