Author: cutting Date: Thu Oct 13 12:42:21 2005 New Revision: 320893 URL: http://svn.apache.org/viewcvs?rev=320893&view=rev Log: Add new file.
Added: lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/Seekable.java Added: lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/Seekable.java URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/Seekable.java?rev=320893&view=auto ============================================================================== --- lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/Seekable.java (added) +++ lucene/nutch/branches/mapred/src/java/org/apache/nutch/fs/Seekable.java Thu Oct 13 12:42:21 2005 @@ -0,0 +1,28 @@ +/** + * Copyright 2005 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.nutch.fs; + +import java.io.*; + +/* Stream which permits seeking. */ +public interface Seekable { + /** + * Seek to the given offset from the start of the file. + * The next read() will be from that location. Can't + * seek past the end of the file. + */ + void seek(long pos) throws IOException; +}