com.epam.mdp.full.storages
Interface BinaryMessage

All Known Subinterfaces:
ReadBytesBinaryMessage

public interface BinaryMessage

The binary message interface. Provides ability to read message.


Method Summary
 boolean hasNext()
          Returns true, if next message available.
 byte[] next()
          Read next message.
 byte[] next(int numOfBytes)
          Reads the numOfBytes from stream.
 long nextLong()
          Read long value from the steam.
 

Method Detail

hasNext

boolean hasNext()
Returns true, if next message available.


next

byte[] next()
Read next message.


next

byte[] next(int numOfBytes)
Reads the numOfBytes from stream.

Parameters:
numOfBytes - the number pf bytes

nextLong

long nextLong()
Read long value from the steam.



Copyright © 2000-2014 EPAM Systems. All Rights Reserved.