|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelma.doc.Util
public final class Util
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static java.lang.String |
chopComment(java.lang.String comment)
chops anything that comes after a closing comment tag |
static java.lang.String |
chopDelimiters(java.lang.String line)
chops a string from comment-delimiters |
static void |
debugLineFromFile(java.io.File sourceFile,
java.awt.Point p,
java.lang.String debugStr)
method to debug file/stream-handling with Point objects. extracts the line p points to and prints it with a pointer to the given column |
static java.lang.String |
extractString(java.lang.String[] lines,
int start,
int end)
Extract a part of a file defined by two points from a String array |
static java.lang.String |
extractString(java.lang.String[] lines,
java.awt.Point start,
java.awt.Point end)
Extract a part of a file defined by two points from a String array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static java.lang.String chopDelimiters(java.lang.String line)
line
- a line of raw text
public static java.lang.String chopComment(java.lang.String comment)
comment
- the raw comment
public static java.lang.String extractString(java.lang.String[] lines, java.awt.Point start, java.awt.Point end)
lines
- an array of linesstart
- of string to extract defined by column x and row yend
- of string to extract
public static java.lang.String extractString(java.lang.String[] lines, int start, int end)
lines
- an array of linesstart
- of string to extract defined by column x and row yend
- of string to extract
public static void debugLineFromFile(java.io.File sourceFile, java.awt.Point p, java.lang.String debugStr)
sourceFile
- p
- x-value is used for column, y for rowdebugStr
- string prefixed to output
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |