com.voidsearch.voidbase.apps.feedq.connector.fetcher
Class FilesystemFeedFetcher

java.lang.Object
  extended by com.voidsearch.voidbase.apps.feedq.connector.fetcher.FilesystemFeedFetcher
All Implemented Interfaces:
FeedFetcher

public class FilesystemFeedFetcher
extends java.lang.Object
implements FeedFetcher


Constructor Summary
FilesystemFeedFetcher()
           
 
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 a byte buffer from the end of given file
 java.lang.String getPath(java.lang.String resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilesystemFeedFetcher

public FilesystemFeedFetcher()
Method Detail

fetchRaw

public byte[] fetchRaw(java.lang.String resource)
                throws java.lang.Exception
Description copied from interface: FeedFetcher
fetch content of given resource

Specified by:
fetchRaw in interface FeedFetcher
Parameters:
resource - resource to fetch
Returns:
Throws:
java.lang.Exception

fetchRaw

public byte[] fetchRaw(java.lang.String resource,
                       int size)
                throws java.lang.Exception
fetch a byte buffer from the end of given file

Specified by:
fetchRaw in interface FeedFetcher
Parameters:
resource - resource to fetch
size - buffer size to fetch
Returns:
Throws:
java.lang.Exception

fetch

public FeedResource fetch(java.lang.String resource)
                   throws java.lang.Exception
Description copied from interface: FeedFetcher
fetch the entire content of resource and factor a appropriate FeedResource

Specified by:
fetch in interface FeedFetcher
Returns:
Throws:
java.lang.Exception

getPath

public java.lang.String getPath(java.lang.String resource)


Copyright © 2009. All Rights Reserved.