blob: e97bd43d9bfe8695407dbd0cf5310fc7e49a9358 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespaxmlparser;
import com.yahoo.vespaxmlparser.VespaXMLFeedReader.Operation;
/**
* Minimal interface for reading operations from a stream for a feeder.
*
* Interface extracted from VespaXMLFeedReader to enable JSON feeding.
*
* @author steinar
*/
public interface FeedReader {
/**
* Reads the next operation from the stream.
* @param operation The operation to fill in. Operation is unchanged if none was found.
*/
public abstract void read(Operation operation) throws Exception;
}
|