|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
hultig.io.FileIN
public class FileIN
NOT YET WELL COMMENTED. *
Copyright: Copyright (c) 2007
Company: UBI/HULTIG
Field Summary | |
---|---|
protected BufferedReader |
br
|
protected String |
encode
|
static Toolkit |
to
|
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
FileIN(String fname)
Constructor. |
Method Summary | |
---|---|
void |
close()
Close the current file |
int |
countNumLines()
Count the number of lines in this file. |
String |
getEncoding()
Return the current encoding. |
static void |
main(String[] args)
MAIN - Just for testing. |
void |
open()
Open/reopen this file. |
static void |
print(String[] v)
Output a static array of strings. |
String |
read()
Read the next line from the opened text. |
String[] |
read(int limit)
Read a maximum amount of strings, from this file. |
String[] |
readAll()
Read all strings from file. |
String[] |
readPattern(String pattern)
Read all strings that matches a given regular expression. |
void |
setEncoding(String encode)
Set the encoding. |
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 BufferedReader br
protected String encode
public static Toolkit to
Constructor Detail |
---|
public FileIN(String fname)
fname
- StringMethod Detail |
---|
public String getEncoding()
public void setEncoding(String encode)
encode
- Stringpublic void open()
public void close()
public int countNumLines()
public String[] readAll()
public String read()
public String[] read(int limit)
limit
- int
public String[] readPattern(String pattern)
pattern
- String
public static void print(String[] v)
v
- String[]public static void main(String[] args)
args
- String[]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |