Uses of Class
org.capnproto.MessageReader
-
-
Uses of MessageReader in org.capnproto
Methods in org.capnproto that return MessageReader Modifier and Type Method Description static MessageReaderSerialize. read(ByteBuffer bb)static MessageReaderSerialize. read(ByteBuffer bb, ReaderOptions options)Upon return, `bb.position()` will be at the end of the message.static MessageReaderSerialize. read(ReadableByteChannel bc)static MessageReaderSerialize. read(ReadableByteChannel bc, ReaderOptions options)static MessageReaderSerializePacked. read(BufferedInputStream input)Reads a message from the provided BufferedInputStream with default options.static MessageReaderSerializePacked. read(BufferedInputStream input, ReaderOptions options)Reads a message from the provided BufferedInputStream with the provided options.static MessageReaderSerializePacked. readFromUnbuffered(ReadableByteChannel input)Wraps the provided ReadableByteChannel in a BufferedInputStream and reads a message from it with default options.static MessageReaderSerializePacked. readFromUnbuffered(ReadableByteChannel input, ReaderOptions options)Wraps the provided ReadableByteChannel in a BufferedInputStream and reads a message from it with the provided options.Methods in org.capnproto that return types with arguments of type MessageReader Modifier and Type Method Description static Optional<MessageReader>Serialize. tryRead(ReadableByteChannel bc)Attempts to read a message from the provided BufferedInputStream with default options.static Optional<MessageReader>Serialize. tryRead(ReadableByteChannel bc, ReaderOptions options)Attempts to read a message from the provided BufferedInputStream with the provided options.static Optional<MessageReader>SerializePacked. tryRead(BufferedInputStream input)Attempts to read a message from the provided BufferedInputStream with default options.static Optional<MessageReader>SerializePacked. tryRead(BufferedInputStream input, ReaderOptions options)Attempts to read a message from the provided BufferedInputStream with the provided options.static Optional<MessageReader>SerializePacked. tryReadFromUnbuffered(ReadableByteChannel input)Wraps the provided ReadableByteChannel in a BufferedInputStream and attempts to read a message from it with default options.static Optional<MessageReader>SerializePacked. tryReadFromUnbuffered(ReadableByteChannel input, ReaderOptions options)Wraps the provided ReadableByteChannel in a BufferedInputStream and attempts to read a message from it with the provided options.Methods in org.capnproto with parameters of type MessageReader Modifier and Type Method Description static MessageBuilderMessageBuilder. unsafeConstructFromMessageReader(MessageReader messageReader)Constructs a MessageBuilder from a MessageReader without copying the segments.static voidSerialize. write(WritableByteChannel outputChannel, MessageReader message)Serializes a MessageReader to a WritableByteChannel.static voidSerializePacked. write(BufferedOutputStream output, MessageReader message)Serializes a MessageReader to a BufferedOutputStream.static voidSerializePacked. writeToUnbuffered(WritableByteChannel output, MessageReader message)Serializes a MessageReader to an unbuffered output stream.
-