net.acomputerdog.BlazeLoader.util.compatibility
Interface IWritable


public interface IWritable

Allows an object to communicate with other arbitrary objects by passing String data. The data does not have to stay within the JVM; it is permitted to read/write to them externally (such as from a file or over a network). Because the data is passed directly through methods, it is safe to assume that the data passed will be used immediately and by the calling thread.


Method Summary
 java.lang.String readData(java.lang.String channel)
          Reads any available data from this IWritable on the specified channel.
 boolean supportsChannel(java.lang.String channel)
          Checks if this IWritable supports the specified channel.
 void writeData(java.lang.String channel, java.lang.String data)
          Passes the given data to this IWritable on the specified channel.
 

Method Detail

writeData

void writeData(java.lang.String channel,
               java.lang.String data)
Passes the given data to this IWritable on the specified channel.

Parameters:
channel - The channel to bind to.
data - The data to pass.

readData

java.lang.String readData(java.lang.String channel)
Reads any available data from this IWritable on the specified channel.

Parameters:
channel - The channel to bind to.
Returns:
Return any available data or null if none is available.

supportsChannel

boolean supportsChannel(java.lang.String channel)
Checks if this IWritable supports the specified channel.

Parameters:
channel - The channel name to check.
Returns:
Return true if the channel is supported, false otherwise.