|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.mtl.parser.cst.utils.FileContent
public final class FileContent
Utilities to read files.
| Method Summary | |
|---|---|
static int |
columnNumber(java.lang.StringBuffer buffer,
int index)
Returns the number of the column for the given offset. |
static java.lang.StringBuffer |
getFileContent(java.io.File file)
Returns the content of the file. |
static int |
lineNumber(java.lang.StringBuffer buffer,
int index)
Returns the number of the line for the given offset. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.StringBuffer getFileContent(java.io.File file)
file - is the file
public static int columnNumber(java.lang.StringBuffer buffer,
int index)
buffer - is the bufferindex - is the offset in the buffer
public static int lineNumber(java.lang.StringBuffer buffer,
int index)
buffer - is the bufferindex - is the offset in the buffer
|
Copyright 2008 Obeo All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||