|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
hultig.io.FileOUT
public class FileOUT
NOT YET WELL COMMENTED.
Copyright: Copyright (c) 2007
Company: UBI/HULTIG
Field Summary | |
---|---|
protected String |
base
File base name - example: for file "fxyz.dat", "fxyz" would be its base name, and ".dat" its extension token. |
protected String |
encode
|
protected String |
ext
|
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
FileOUT(String fname)
|
|
FileOUT(String fname,
String encode)
The default encoding is: UTF-8 |
Method Summary | |
---|---|
void |
close()
Close this file. |
void |
flush()
|
String |
getBase()
|
String |
getBaseExt()
|
String |
getEncoding()
Return the current encoding; |
String |
getExt()
|
static void |
main(String[] args)
M A I N - For testing ... |
boolean |
open()
Open the defined output file, with UTF-8 encoding. |
boolean |
open(String encoding)
Redefine the output character encoding |
void |
print(String s)
A shortcut for standard print. |
void |
printf(String format,
Object... args)
My printf function, similar to the C function. |
void |
printfPT(String format,
Object... args)
My printf function, similar to the C function. |
void |
println(String s)
shortcut for standard println. |
String |
sprintf(String format,
Object... args)
My sprintf function, similar to the C function. |
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String encode
protected String base
protected String ext
Constructor Detail |
---|
public FileOUT(String fname)
public FileOUT(String fname, String encode)
string
- StringMethod Detail |
---|
public String getBase()
public String getExt()
public String getBaseExt()
public void close()
public boolean open()
public void flush()
public boolean open(String encoding)
encoding
-
public String getEncoding()
public void print(String s)
s
- Stringpublic void println(String s)
s
- Stringpublic String sprintf(String format, Object... args)
format
- Stringargs
- Object[]
public void printf(String format, Object... args)
format
- Stringargs
- Object[]public void printfPT(String format, Object... args)
format
- Stringargs
- Object[]public static void main(String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |