1   /*
2    *    WKB4J - WKB reader for geographical mapping toolkits
3    *    (C) 2002,2003, David Garnier, dgarnier@users.sourceforge.net
4    *
5    *    This library is free software; you can redistribute it and/or
6    *    modify it under the terms of the GNU Lesser General Public
7    *    License as published by the Free Software Foundation,
8    *    version 2.1 of the License.
9    * 
10   *    This library is distributed in the hope that it will be useful,
11   *    but WITHOUT ANY WARRANTY; without even the implied warranty of
12   *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13   *    Lesser General Public License for more details.
14   *
15   *    You should have received a copy of the GNU Lesser General Public
16   *    License along with this library; if not, write to the Free Software
17   *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18   *    or visit the web to http://www.gnu.org.
19   * 
20   */
21  package org.wkb4j.engine;
22  
23  import org.apache.log4j.Logger;
24  
25  public abstract class AbstractWKBGetter implements WKBGetter {
26  	protected static Logger log = Logger.getLogger(AbstractWKBGetter.class);
27  	protected WKBFactory factory;
28  	protected WKBParser parser;
29  	protected WKBReader reader = new WKBReader();
30  
31  	public AbstractWKBGetter(WKBFactory _factory) {
32  		if (_factory == null) {
33  			throw new IllegalArgumentException("Submitted factory is null.");
34  		}
35  		factory = _factory;
36  		parser = new WKBParser(factory);
37  	}
38  }
This page was automatically generated by Maven