Class AbstractPackage
java.lang.Object
org.eclipse.emf.mwe.internal.core.debug.communication.packages.AbstractPackage
- Direct Known Subclasses:
BreakpointPackage
,CommandPackage
,ConfirmationPackage
,EventPackage
,HandshakePackage
,RegisterPackage
,RequireVarPackage
,VarDataPackage
The base class for all types of packages. It has the id and refId. Inheriting classes must call setNextId to get
a valid id.
-
Field Details
-
id
protected int id -
refId
public int refId
-
-
Constructor Details
-
AbstractPackage
public AbstractPackage()
-
-
Method Details
-
getId
public int getId() -
readContent
fill the packet fields from theDataInputStream
. Implementors have to make sure that the data content matches with the writeContent(out) method!!- Parameters:
in
- the DataInputStream- Throws:
IOException
-
writeContent
write the packet fields content to theDataOutputStream
. Implementors have to make sure that the data content matches with the readContent(out) method!!- Parameters:
out
- the DataOutputStream- Throws:
IOException
-
toString
-
setNextId
protected void setNextId()
-