summaryrefslogtreecommitdiffstats
path: root/document/src/main/java/com/yahoo/vespaxmlparser/FeedReader.java
blob: 28028f1d7de86b23b7c41f4b9d94bd64be483b84 (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.
     */
    public abstract void read(Operation operation) throws Exception;

}