|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectTools
public final class Tools
| Method Summary | |
|---|---|
static int |
checkText(String contents,
JLanguageTool lt)
|
static int |
checkText(String contents,
JLanguageTool lt,
boolean apiFormat)
|
static int |
checkText(String contents,
JLanguageTool lt,
boolean apiFormat,
int contextSize)
Check the given text and print results to System.out. |
static String |
getFullStackTrace(Throwable e)
Get a stacktrace as a string. |
static InputStream |
getInputStream(String resourcePath)
|
static InputStream |
getStream(String filename)
Load a file form the classpath using getResourceAsStream(). |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int checkText(String contents,
JLanguageTool lt)
throws IOException
IOException
public static int checkText(String contents,
JLanguageTool lt,
boolean apiFormat)
throws IOException
IOException
public static int checkText(String contents,
JLanguageTool lt,
boolean apiFormat,
int contextSize)
throws IOException
contents - a text to check (may be more than one sentence)lt - apiFormat - whether to print the result in a simple XML formatcontextSize - error text context size: -1 for default
IOException
public static InputStream getInputStream(String resourcePath)
throws IOException
IOExceptionpublic static String getFullStackTrace(Throwable e)
public static InputStream getStream(String filename)
throws IOException
filename -
IOException - if the file cannot be loaded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||