|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.percederberg.mibble.FileLocation
A file location. This class contains a reference to an exact location inside a text file.
Constructor Summary | |
FileLocation(java.io.File file)
Creates a new file location without an exact line or column reference. |
|
FileLocation(java.io.File file,
int line,
int column)
Creates a new file location. |
Method Summary | |
int |
getColumnNumber()
Returns the column number. |
java.io.File |
getFile()
Returns the file name. |
int |
getLineNumber()
Returns the line number. |
java.lang.String |
readLine()
Reads the specified line from the file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileLocation(java.io.File file)
file
- the file namepublic FileLocation(java.io.File file, int line, int column)
file
- the file nameline
- the line numbercolumn
- the column numberMethod Detail |
public java.io.File getFile()
public int getLineNumber()
public int getColumnNumber()
public java.lang.String readLine()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |