- All Known Implementing Classes:
NodecSSE
public interface Nodec
Encode/decode for Nodes into bytes
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.graph.Nodedecode(ByteBuffer bb, org.apache.jena.shared.PrefixMapping pmap) Decode the node from the byte buffer.intencode(org.apache.jena.graph.Node node, ByteBuffer bb, org.apache.jena.shared.PrefixMapping pmap) Encode the node into the byte buffer, starting at the given offset.intmaxSize(org.apache.jena.graph.Node node) Calculate the maximum number of bytes needed for a Node.
-
Method Details
-
maxSize
int maxSize(org.apache.jena.graph.Node node) Calculate the maximum number of bytes needed for a Node. This needs to be an overestimate and is used to ensure there is space in the bytebuffer passed to encode.
-