FileDocCategorySizeDatePackage
StackTraceElementData.javaAPI DocAndroid 1.5 API2213Wed May 06 22:41:56 BST 2009android.server.data

StackTraceElementData

public class StackTraceElementData extends Object
Stack trace element data transfer object. Keep in sync. with the server side version.

Fields Summary
final String
className
final String
fileName
final String
methodName
final int
lineNumber
Constructors Summary
public StackTraceElementData(StackTraceElement element)

        this.className = element.getClassName();

        String fileName = element.getFileName();
        this.fileName = fileName == null ? "[unknown source]" : fileName;

        this.methodName = element.getMethodName();
        this.lineNumber = element.getLineNumber();
    
public StackTraceElementData(DataInput in)

        int dataVersion = in.readInt();
        if (dataVersion != 0) {
            throw new IOException("Expected 0. Got: " + dataVersion);
        }

        this.className = in.readUTF();
        this.fileName = in.readUTF();
        this.methodName = in.readUTF();
        this.lineNumber = in.readInt();
    
Methods Summary
public java.lang.StringgetClassName()

        return className;
    
public java.lang.StringgetFileName()

        return fileName;
    
public intgetLineNumber()

        return lineNumber;
    
public java.lang.StringgetMethodName()

        return methodName;
    
voidwrite(java.io.DataOutput out)

        out.writeInt(0); // version

        out.writeUTF(className);
        out.writeUTF(fileName);
        out.writeUTF(methodName);
        out.writeInt(lineNumber);