summaryrefslogtreecommitdiffstats
path: root/document/src/main/java/com/yahoo/vespaxmlparser/FeedReader.java
blob: e385d0ce731833c7bd40aebb527d69d77a8216f2 (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;

}