Interface CAVerdantMessagesType
- All Superinterfaces:
com.io7m.repetoir.core.RPServiceType
- All Known Implementing Classes:
CAVerdantMessages
public interface CAVerdantMessagesType
extends com.io7m.repetoir.core.RPServiceType
Service wrapper for Verdant messages.
-
Method Summary
Methods inherited from interface com.io7m.repetoir.core.RPServiceType
description
-
Method Details
-
contentType
- Returns:
- The content type used for versioning
-
serialize
byte[] serialize(com.io7m.verdant.core.VProtocols protocols, int version) throws com.io7m.verdant.core.VProtocolException Serialize the given protocols.- Parameters:
protocols- The protocolsversion- The container version- Returns:
- The serialized bytes
- Throws:
com.io7m.verdant.core.VProtocolException- On errors
-
parse
com.io7m.verdant.core.VProtocols parse(URI source, byte[] data) throws com.io7m.verdant.core.VProtocolException Parse versions from the given source.- Parameters:
source- The sourcedata- The read bytes- Returns:
- A set of parsed versions
- Throws:
com.io7m.verdant.core.VProtocolException- If the input cannot be parsed
-