blob: 2c130cae782a16d35c904fda71399b7e78d142be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright 2017 Yahoo Holdings. 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.
*/
void read(Operation operation) throws Exception;
}
|