Package org.apache.vinci.transport
Interface FrameTransporter
-
- All Known Implementing Classes:
XTalkTransporter
public interface FrameTransporter
Interface required by Frame to support marshalling. Concrete implementations can marshall using any desired wire format. For example, the XTalkTransporter is an implementation that uses XTalk, the default Vinci wire format.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyValuePair
fromStream(InputStream is, Frame f)
Marshal the frame to the input stream.void
toStream(OutputStream os, Frame f)
Populate the (empty) frame from the stream contents.
-
-
-
Method Detail
-
fromStream
KeyValuePair fromStream(InputStream is, Frame f) throws IOException, EOFException
Marshal the frame to the input stream.- Parameters:
is
- The stream where the Frame is written.f
- The Frame to be marshalled.- Returns:
- -
- Throws:
IOException
- -EOFException
- -
-
toStream
void toStream(OutputStream os, Frame f) throws IOException
Populate the (empty) frame from the stream contents.- Parameters:
os
- The stream from where the data is read.f
- The Frame to be populated from the stream.- Throws:
IOException
- -
-
-