1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 package com.sun.star.tooling.converter;
24 
25 import java.io.*;
26 import java.util.*;
27 
28 /**
29  * Gets Line counting from LineNumberReader all Converter Reader classes inherit
30  * from this.
31  * The abstract parent class of all converter reader classes
32  *
33  * @author Christian Schmidt
34  */
35 abstract public class DataReader extends LineNumberReader {
36 
37     /**
38      * Creates a new instance of DataReader
39      *
40      * @param isr
41      *            InputStreamReader used as Source for this class
42      */
DataReader(InputStreamReader isr)43     public DataReader(InputStreamReader isr) {
44         super(isr);
45     }
46 
47     /**
48 
49      * @throws java.io.IOException
50      * @throws ConverterException
51      *
52      * TODO this should no longer use an array as return type better a Map
53      *
54      */
55     /**
56      * The next block of the SDF file is reviewed and the Line including the
57      * source language and the Line including the target Language are given back
58      * in an array
59      *
60      *
61      * @return    A Map including the source language
62      *            and the target Language content are given back
63      *
64      * @throws java.io.IOException
65      * @throws ConverterException
66      */
getData()67     public Map getData() throws java.io.IOException, ConverterException {
68         return null;
69     }
70 
71 
72 }