Package de.freaklamarsch.systarest
Class STouchProtocol.MacAddressReaderWriter
java.lang.Object
de.freaklamarsch.systarest.STouchProtocol.MacAddressReaderWriter
- All Implemented Interfaces:
STouchProtocol.ObjectReaderWriter<STouchProtocol.MacAddress>
- Enclosing class:
- STouchProtocol
public static class STouchProtocol.MacAddressReaderWriter extends java.lang.Object implements STouchProtocol.ObjectReaderWriter<STouchProtocol.MacAddress>
-
Constructor Summary
Constructors Constructor Description MacAddressReaderWriter() -
Method Summary
Modifier and Type Method Description STouchProtocol.MacAddressreadFromBuffer(java.nio.ByteBuffer buffer)Parses the command from the received buffer and returns a parsed object.intwriteToBuffer(java.nio.ByteBuffer buffer, STouchProtocol.MacAddress macAddress)Converts the parsed object into the reply buffer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MacAddressReaderWriter
public MacAddressReaderWriter()
-
-
Method Details
-
readFromBuffer
Description copied from interface:STouchProtocol.ObjectReaderWriterParses the command from the received buffer and returns a parsed object.- Specified by:
readFromBufferin interfaceSTouchProtocol.ObjectReaderWriter<STouchProtocol.MacAddress>- Parameters:
buffer- the buffer containing the data to read- Returns:
- the parsed object
-
writeToBuffer
Description copied from interface:STouchProtocol.ObjectReaderWriterConverts the parsed object into the reply buffer.- Specified by:
writeToBufferin interfaceSTouchProtocol.ObjectReaderWriter<STouchProtocol.MacAddress>- Parameters:
buffer- the buffer to write tomacAddress- the object to convert- Returns:
- the length of the bytes written to the buffer
-