public class JsonPacket extends Object
1 string = comment
Constructor and Description |
---|
JsonPacket() |
Modifier and Type | Method and Description |
---|---|
static JsonPacket |
createFromBuffer(String value) |
com.fasterxml.jackson.databind.node.ObjectNode |
createObjectNode() |
void |
fromJson(JsonPacket json)
Set from other Json
|
String |
getComment() |
byte |
getRequestUserPacket() |
void |
setComment(String comment) |
void |
setRequestUserPacket()
Default value to set
|
void |
setRequestUserPacket(byte requestUserPacket) |
String |
toString() |
public com.fasterxml.jackson.databind.node.ObjectNode createObjectNode() throws OpenR66ProtocolPacketException
OpenR66ProtocolPacketException
public byte getRequestUserPacket()
public void setRequestUserPacket(byte requestUserPacket)
requestUserPacket
- the requestUserPacket to setpublic void setRequestUserPacket()
public String getComment()
public void setComment(String comment)
comment
- the comment to setpublic static JsonPacket createFromBuffer(String value) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
value
- IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonParseException
public void fromJson(JsonPacket json)
json
- Copyright © 2009–2020 Waarp. All rights reserved.