public class ThreadRecord
extends java.lang.Object
readThreadData
to load up the data.
Depending on the type of thread, the data may be text. If so,
isText will return true and getText
will return the string. Otherwise the data should be read through
one of the InputStream options.
| Constructor and Description |
|---|
ThreadRecord(HeaderBlock hb,
LittleEndianByteInputStream bs)
Construct the ThreadRecord and read the header details.
|
ThreadRecord(LittleEndianByteInputStream bs)
Construct the ThreadRecord and read the header details with no hints
from the Header Block.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Get raw data bytes (compressed).
|
long |
getCompThreadEof() |
java.io.InputStream |
getInputStream()
Get the appropriate input data stream for this thread to decompress the contents.
|
java.io.InputStream |
getRawInputStream()
Get the raw data input stream.
|
java.lang.String |
getText()
Return the text data.
|
ThreadClass |
getThreadClass() |
int |
getThreadCrc() |
byte[] |
getThreadData() |
long |
getThreadEof() |
ThreadFormat |
getThreadFormat() |
ThreadKind |
getThreadKind() |
boolean |
isText()
Determine if this is a text-type field.
|
void |
readThreadData(LittleEndianByteInputStream bs)
Read the raw thread data.
|
void |
setCompThreadEof(long compThreadEof) |
void |
setThreadClass(ThreadClass threadClass) |
void |
setThreadCrc(int threadCrc) |
void |
setThreadData(byte[] threadData) |
void |
setThreadEof(long threadEof) |
void |
setThreadFormat(ThreadFormat threadFormat) |
void |
setThreadKind(ThreadKind threadKind) |
public ThreadRecord(LittleEndianByteInputStream bs) throws java.io.IOException
java.io.IOExceptionpublic ThreadRecord(HeaderBlock hb, LittleEndianByteInputStream bs) throws java.io.IOException
java.io.IOExceptionpublic void readThreadData(LittleEndianByteInputStream bs) throws java.io.IOException
java.io.IOExceptionpublic boolean isText()
public java.lang.String getText()
public byte[] getBytes()
public java.io.InputStream getRawInputStream()
public java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionpublic ThreadClass getThreadClass()
public void setThreadClass(ThreadClass threadClass)
public ThreadFormat getThreadFormat()
public void setThreadFormat(ThreadFormat threadFormat)
public ThreadKind getThreadKind()
public void setThreadKind(ThreadKind threadKind)
public int getThreadCrc()
public void setThreadCrc(int threadCrc)
public long getThreadEof()
public void setThreadEof(long threadEof)
public long getCompThreadEof()
public void setCompThreadEof(long compThreadEof)
public byte[] getThreadData()
public void setThreadData(byte[] threadData)