branch for refactoring

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@344 838fabe5-b1a8-4b81-9896-7a84386980e9
code cleanup 

- manage resources with try-with-resource
- remove redundant / obsolete code
- correct some error handling routines

to be continued...



git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@345 838fabe5-b1a8-4b81-9896-7a84386980e9
- remove remaining code to read from stdin
- stop if I/O error occurs while using temp file in Long2IntClosedMap

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@346 838fabe5-b1a8-4b81-9896-7a84386980e9
- remove remaining code to read from stdin
- stop if I/O error occurs while using temp file in Long2IntClosedMap

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@347 838fabe5-b1a8-4b81-9896-7a84386980e9
fix spelling errors

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@348 838fabe5-b1a8-4b81-9896-7a84386980e9
allow to catch exceptions in Main

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@349 838fabe5-b1a8-4b81-9896-7a84386980e9
catch also RunTimeException in Main

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@350 838fabe5-b1a8-4b81-9896-7a84386980e9
code cleanup 

- remove redundant else clauses
- remove redundant casts
- add static were appropriate

to be continued...



git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@351 838fabe5-b1a8-4b81-9896-7a84386980e9
add JavaDoc

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@352 838fabe5-b1a8-4b81-9896-7a84386980e9
simplify code, no functional change

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@353 838fabe5-b1a8-4b81-9896-7a84386980e9
simplify KmlWriter

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@354 838fabe5-b1a8-4b81-9896-7a84386980e9
verify area read from file

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@355 838fabe5-b1a8-4b81-9896-7a84386980e9
define some useful constants 

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@356 838fabe5-b1a8-4b81-9896-7a84386980e9
perform basic plausibility check for nodes

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@357 838fabe5-b1a8-4b81-9896-7a84386980e9
use new constants in Utils in verify()

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@358 838fabe5-b1a8-4b81-9896-7a84386980e9
- use try-with-resources for o5m and pbf input files
- remove redundant type specifications

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@359 838fabe5-b1a8-4b81-9896-7a84386980e9
- stop if reading of split-file failed
- stop if writing of areas.list failed

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@360 838fabe5-b1a8-4b81-9896-7a84386980e9
add  "processing continues" message when writing of *.poly or *.kml 
fails with an error message

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@361 838fabe5-b1a8-4b81-9896-7a84386980e9
don't create temp objects hiding name of field variable

git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@362 838fabe5-b1a8-4b81-9896-7a84386980e9
- use try-with-resources for reading splitter-version.properties


git-svn-id: http://svn.mkgmap.org.uk/splitter/branches/refactoring@363 838fabe5-b1a8-4b81-9896-7a84386980e9