Package de.freaklamarsch.systarest
Class STouchProtocol.TextXYReaderWriter
java.lang.Object
de.freaklamarsch.systarest.STouchProtocol.TextXYReaderWriter
- All Implemented Interfaces:
STouchProtocol.ObjectReaderWriter<STouchProtocol.TextXY>
- Enclosing class:
- STouchProtocol
private static class STouchProtocol.TextXYReaderWriter extends java.lang.Object implements STouchProtocol.ObjectReaderWriter<STouchProtocol.TextXY>
-
Field Summary
Fields Modifier and Type Field Description (package private) STouchProtocol.CoordinatesReaderWritercoordinatesReaderWriter(package private) STouchProtocol.TextReaderWritertextReaderWriter -
Constructor Summary
Constructors Modifier Constructor Description privateTextXYReaderWriter() -
Method Summary
Modifier and Type Method Description STouchProtocol.TextXYreadFromBuffer(java.nio.ByteBuffer buffer)Parses the command from the received buffer and returns a parsed object.intwriteToBuffer(java.nio.ByteBuffer buffer, STouchProtocol.TextXY textXY)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
STouchProtocol.CoordinatesReaderWriter coordinatesReaderWriter -
textReaderWriter
STouchProtocol.TextReaderWriter textReaderWriter
-
-
Constructor Details
-
TextXYReaderWriter
private TextXYReaderWriter()
-
-
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.TextXY>- 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.TextXY>- Parameters:
buffer- the buffer to write totextXY- the object to convert- Returns:
- the length of the bytes written to the buffer
-