org.objectweb.cjdbc.common.exceptions.driver.protocol
Class SerializableStackTraceElement
java.lang.Object
org.objectweb.cjdbc.common.exceptions.driver.protocol.SerializableStackTraceElement
- public class SerializableStackTraceElement
- extends java.lang.Object
This class re-implements StackTraceElement of JDK 1.5, as a brute force
workaround for the forgotten constructor in JDK 1.4.
- Version:
- 1.0
- Author:
- Marc Herbert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
declaringClass
private java.lang.String declaringClass
methodName
private java.lang.String methodName
fileName
private java.lang.String fileName
lineNumber
private int lineNumber
SerializableStackTraceElement
public SerializableStackTraceElement(java.lang.StackTraceElement st)
- Constructs/converts a standard StackTraceElement (non-serializable in 1.4)
into a SerializableStackTraceElement.
- Parameters:
st
- the element to convert.
SerializableStackTraceElement
public SerializableStackTraceElement(CJDBCInputStream in)
throws java.io.IOException
- Deserializes a new
SerializableStackTraceElement
from the
stream
- Parameters:
in
- the stream to read from
- Throws:
java.io.IOException
- stream error
sendToStream
public void sendToStream(CJDBCOutputStream out)
throws java.io.IOException
- Serializes the object to the given stream.
- Parameters:
out
- the stream to send the object to
- Throws:
java.io.IOException
- stream error
getLineNumber
public int getLineNumber()
- See Also:
StackTraceElement.getLineNumber()
getClassName
public java.lang.String getClassName()
- See Also:
StackTraceElement.getClassName()
getMethodName
public java.lang.String getMethodName()
- See Also:
StackTraceElement.getMethodName()
isNativeMethod
public boolean isNativeMethod()
- See Also:
StackTraceElement.isNativeMethod()
toString
public java.lang.String toString()
- See Also:
StackTraceElement.toString()
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.