public final class Translator
extends java.lang.Object
Constructor and Description |
---|
Translator(MapFile mapFile)
Create a new translator.
|
Translator(java.lang.String mapFilename) |
Modifier and Type | Method and Description |
---|---|
void |
translate(java.io.InputStream input,
java.io.PrintStream output)
Translate stack trace output.
|
java.lang.String |
translateClassAndMethod(java.lang.String className,
java.lang.String methodName)
Translate a renamed class and or method into its original information.
|
java.lang.String |
translateStackTrace(java.lang.String stackTraceIn) |
public Translator(MapFile mapFile)
mapFile
- the map file that contains the renaming information.public Translator(java.lang.String mapFilename) throws java.io.IOException
java.io.IOException
public java.lang.String translateStackTrace(java.lang.String stackTraceIn) throws java.io.IOException
java.io.IOException
public java.lang.String translateClassAndMethod(java.lang.String className, java.lang.String methodName)
className
- the new name of a class.methodName
- the new name of a method.public void translate(java.io.InputStream input, java.io.PrintStream output) throws java.io.IOException
input
- stream containing the stack trace to be translatedoutput
- stream to which to write the translated stack tracejava.io.IOException
- if there is a problem parsing the stack trace
information.Copyright 2024 PreEmptive Solutions, LLC. All Rights Reserved.