com.voidsearch.voidbase.apps.feedq.connector.fetcher
Interface FeedFetcher

All Known Implementing Classes:
FilesystemFeedFetcher, HttpFeedFetcher

public interface FeedFetcher

Author:
Aleksandar Bradic

Method Summary
 FeedResource fetch(java.lang.String resource)
          fetch the entire content of resource and factor a appropriate FeedResource
 byte[] fetchRaw(java.lang.String resource)
          fetch content of given resource
 byte[] fetchRaw(java.lang.String resource, int size)
          fetch last size bytes from given resource
 

Method Detail

fetchRaw

byte[] fetchRaw(java.lang.String resource)
                throws java.lang.Exception
fetch content of given resource

Parameters:
resource - resource to fetch
Returns:
Throws:
java.lang.Exception

fetchRaw

byte[] fetchRaw(java.lang.String resource,
                int size)
                throws java.lang.Exception
fetch last size bytes from given resource

Parameters:
resource - resource to fetch
size - buffer size to fetch
Returns:
Throws:
java.lang.Exception

fetch

FeedResource fetch(java.lang.String resource)
                   throws java.lang.Exception
fetch the entire content of resource and factor a appropriate FeedResource

Parameters:
resource -
Returns:
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.