Interface ILfnReadCallback

All Superinterfaces:
ILfnCallback<ALfnTileStore.ReadResult>

public interface ILfnReadCallback extends ILfnCallback<ALfnTileStore.ReadResult>
An extension of the general ILfnCallback which adds a specific callback for when content is found. When content is found, it marks a non-final state in the read operation's life cycle: writing to the receiver's channel has yet to commence. When all content is written, a final call to ILfnCallback.completed(Object) will be made.

This callback replaces ILfnGetTileHandler.

Since:
2013.1
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    found(long aContentLength, long aModificationTime)
    A non-final callback made right before content will be written to the receiver's channel.

    Methods inherited from interface com.luciad.fusion.util.ILfnCallback

    completed, threw
  • Method Details

    • found

      void found(long aContentLength, long aModificationTime)
      A non-final callback made right before content will be written to the receiver's channel. It allows implementers to for example allocate a buffer of the exact content length. Bear in mind that the modification time may be truncated to second precision because of file system limitations.
      Parameters:
      aContentLength - the content length in bytes
      aModificationTime - the modification time in milliseconds since epoch