org.planx.io
Interface SizeStreamer<E>

All Superinterfaces:
Streamer<E>
All Known Implementing Classes:
Locator.CompactStreamer

public interface SizeStreamer<E>
extends Streamer<E>

A Streamer that is also capable of informing, in advance, how many bytes will be written to a data source.

Author:
Thomas Ambus

Method Summary
 long size(E obj)
          Returns the number of bytes that this Streamer will write when the toStream method is invoked on the specified object.
 
Methods inherited from interface org.planx.io.Streamer
fromStream, toStream
 

Method Detail

size

long size(E obj)
          throws IOException
Returns the number of bytes that this Streamer will write when the toStream method is invoked on the specified object.

Throws:
IOException


Copyright © 2004-2005 Plan-X. All Rights Reserved.