001    package org.LiveGraph.dataFile.read;
002    
003    import java.util.List;
004    
005    /**
006     * An convenience adapter that implements the {@link DataStreamObserver}-interface
007     * and defines all methods as empty. This is handy as a superclass when you want to
008     * define a {@code DataStreamObserver} that does not use all methods of the interface. 
009     * 
010     * <p><strong>LiveGraph</strong> (http://www.live-graph.org).</p>
011     * <p>Copyright (c) 2007 by G. Paperin.</p>
012     * <p>File: DataStreamObserverAdapter.java</p> 
013     * <p style="font-size:smaller;">Redistribution and use in source and binary forms, with or
014     *    without modification, are permitted provided that the following terms and conditions are met:
015     * </p>
016     * <p style="font-size:smaller;">1. Redistributions of source code must retain the above
017     *    acknowledgement of the LiveGraph project and its web-site, the above copyright notice,
018     *    this list of conditions and the following disclaimer.<br />
019     *    2. Redistributions in binary form must reproduce the above acknowledgement of the
020     *    LiveGraph project and its web-site, the above copyright notice, this list of conditions
021     *    and the following disclaimer in the documentation and/or other materials provided with
022     *    the distribution.<br />
023     *    3. All advertising materials mentioning features or use of this software or any derived
024     *    software must display the following acknowledgement:<br />
025     *    <em>This product includes software developed by the LiveGraph project and its
026     *    contributors.<br />(http://www.live-graph.org)</em><br />
027     *    4. All advertising materials distributed in form of HTML pages or any other technology
028     *    permitting active hyper-links that mention features or use of this software or any
029     *    derived software must display the acknowledgment specified in condition 3 of this
030     *    agreement, and in addition, include a visible and working hyper-link to the LiveGraph
031     *    homepage (http://www.live-graph.org).
032     * </p>
033     * <p style="font-size:smaller;">THIS SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY
034     *    OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
035     *    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND  NONINFRINGEMENT. IN NO EVENT SHALL
036     *    THE AUTHORS, CONTRIBUTORS OR COPYRIGHT  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
037     *    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING  FROM, OUT OF OR
038     *    IN CONNECTION WITH THE SOFTWARE OR THE USE OR  OTHER DEALINGS IN THE SOFTWARE.
039     * </p>
040     * 
041     * @author Greg Paperin (http://www.paperin.org)
042     * @version {@value org.LiveGraph.LiveGraph#version}
043     */
044    public class DataStreamObserverAdapter implements DataStreamObserver {
045    
046    public void eventCommentLine(String comment, DataStreamReader reader) {
047            // Just an adapter method
048    }
049    
050    public void eventDataLineRead(List<String> dataTokens, int datasetIndex, DataStreamReader reader) {
051            // Just an adapter method
052    }
053    
054    public void eventFileInfoLine(String info, DataStreamReader reader) {
055            // Just an adapter method
056    }
057    
058    public void eventLabelsSet(List<String> labels, DataStreamReader reader) {
059            // Just an adapter method
060    }
061    
062    public void eventSeparatorSet(String separator, DataStreamReader reader) {
063            // Just an adapter method
064    }
065    
066    }