|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.g11ntoolkit.detokenizer.FileCopy
Extracts the specified input file from the specified combined file to create the specified output file.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
See License Agreement.
| Field Summary | |
protected static java.lang.String |
encoding
The encoding for both the input and output files. |
private static java.util.logging.Logger |
log
The log used for all messages from this class. |
protected static java.util.ResourceBundle |
mrb
Message Resource Bundle. |
protected java.lang.String |
theContextFileName
The context input file name saved for later use. |
protected static java.util.ResourceBundle |
vrb
Variables Resource Bundle. |
| Constructor Summary | |
FileCopy()
|
|
| Method Summary | |
void |
copy(JSStrFile jsstr,
java.lang.String inFileName,
java.lang.String contextFileName,
java.lang.String outFileName,
java.lang.String enc)
Extracts the input file from the combined file to create the output file. |
java.lang.StringBuffer |
extractFile(java.lang.String inFileName,
java.lang.StringBuffer comboFile)
Extract the specified input file name from the combined file buffer. |
void |
FileCopy()
Creates an instance of this class. |
java.lang.StringBuffer |
getScript(JSStrFile jsstr,
java.lang.String inFileName)
Reads in the specified file and stores it in the string buffer. |
java.lang.StringBuffer |
readFile(java.lang.String comboFileName)
Reads in the specified file and stores it in the string buffer. |
void |
writeFile(java.lang.StringBuffer inFile,
java.lang.String outFileName)
Writes the contents of the input file into the output file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static java.util.logging.Logger log
protected static java.util.ResourceBundle mrb
protected static java.util.ResourceBundle vrb
protected static java.lang.String encoding
protected java.lang.String theContextFileName
| Constructor Detail |
public FileCopy()
| Method Detail |
public void FileCopy()
public void copy(JSStrFile jsstr,
java.lang.String inFileName,
java.lang.String contextFileName,
java.lang.String outFileName,
java.lang.String enc)
throws FileCopyError
jsstr - a JSStrFileinFileName - a String specifying the name of the input file to extractoutFileName - a String specifying the name of the output fileenc - a String specifying the encoding for both the input and output files
FileCopyError - for any errors
public java.lang.StringBuffer readFile(java.lang.String comboFileName)
throws FileCopyError
comboFileName - a String specifying the name of the file to read
FileCopyError - for any errors
public java.lang.StringBuffer getScript(JSStrFile jsstr,
java.lang.String inFileName)
throws FileCopyError
jsstr - a JSStrFileinFileName - a String specifying the name of the tag
FileCopyError - for any errors
public java.lang.StringBuffer extractFile(java.lang.String inFileName,
java.lang.StringBuffer comboFile)
inFileName - a String specifying the name of the file to extractcomboFile - a StringBuffer specifying the contents of the combined file
public void writeFile(java.lang.StringBuffer inFile,
java.lang.String outFileName)
throws FileCopyError
inFile - a StringBuffer specifying the contents of the input fileoutFileName - a String specifying the name of the output file
FileCopyError - for any errors
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||