Package de.freaklamarsch.systarest
Class STouchProtocol.RoundRectangleReaderWriter
java.lang.Object
de.freaklamarsch.systarest.STouchProtocol.RoundRectangleReaderWriter
- All Implemented Interfaces:
STouchProtocol.ObjectReaderWriter<STouchProtocol.RoundRectangle>
- Enclosing class:
- STouchProtocol
private static class STouchProtocol.RoundRectangleReaderWriter extends java.lang.Object implements STouchProtocol.ObjectReaderWriter<STouchProtocol.RoundRectangle>
-
Field Summary
Fields Modifier and Type Field Description private STouchProtocol.CoordinatesReaderWriter
coordinatesReaderWriter
private STouchProtocol.ShortIntegerReaderWriter
shortIntegerReaderWriter
-
Constructor Summary
Constructors Modifier Constructor Description private
RoundRectangleReaderWriter()
-
Method Summary
Modifier and Type Method Description STouchProtocol.RoundRectangle
readFromBuffer(java.nio.ByteBuffer buffer)
Parses the command from the received buffer and returns a parsed object.int
writeToBuffer(java.nio.ByteBuffer buffer, STouchProtocol.RoundRectangle roundRectangle)
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
-
Field Details
-
coordinatesReaderWriter
-
shortIntegerReaderWriter
-
-
Constructor Details
-
RoundRectangleReaderWriter
private RoundRectangleReaderWriter()
-
-
Method Details
-
readFromBuffer
Description copied from interface:STouchProtocol.ObjectReaderWriter
Parses the command from the received buffer and returns a parsed object.- Specified by:
readFromBuffer
in interfaceSTouchProtocol.ObjectReaderWriter<STouchProtocol.RoundRectangle>
- Parameters:
buffer
- the buffer containing the data to read- Returns:
- the parsed object
-
writeToBuffer
Description copied from interface:STouchProtocol.ObjectReaderWriter
Converts the parsed object into the reply buffer.- Specified by:
writeToBuffer
in interfaceSTouchProtocol.ObjectReaderWriter<STouchProtocol.RoundRectangle>
- Parameters:
buffer
- the buffer to write toroundRectangle
- the object to convert- Returns:
- the length of the bytes written to the buffer
-