private void parseInputArchive(final Node node, final ConfigSettings config)
	{

		String name;

		InputType type = null;
		String path = null;
		long startPosition = 0;

		Node nnode;
		NodeList list = node.getChildNodes();

		int length = list.getLength();
		for (int i = 0; i < length; i++) {
			nnode = list.item(i);

			name = nnode.getNodeName().toUpperCase();
			if (name.equals(KEY_TYPE)) {

				type = InputType.parse(nnode.getChildNodes().item(0)
						.getNodeValue());

			}
			else if (name.equals(KEY_PATH)) {

				path = nnode.getChildNodes().item(0).getNodeValue();
				path = path.substring(1, path.length() - 1);

			}
			else if (name.equals(KEY_START)) {

				startPosition = Long.parseLong(nnode.getChildNodes().item(0)
						.getNodeValue());

			}
		}

		if (type == null || path == null) {
			throw new IllegalArgumentException("Illegal Archive Description");
		}

		ArchiveDescription archive = new ArchiveDescription(type, path);
		if (startPosition > 0) {
			archive.setStartPosition(startPosition);
		}

		config.add(archive);
	}
private void parseInputArchive ( final Node node , final ConfigSettings config ) { String name ; InputType type = null ; String path = null ; long startPosition = 0 ; Node nnode ; NodeList list = node . getChildNodes ( ) ; int length = list . getLength ( ) ; for ( int i = 0 ; i < length ; i ++ ) { nnode = list . item ( i ) ; name = nnode . getNodeName ( ) . toUpperCase ( ) ; if ( name . equals ( KEY_TYPE ) ) { type = InputType . parse ( nnode . getChildNodes ( ) . item ( 0 ) . getNodeValue ( ) ) ; } else if ( name . equals ( KEY_PATH ) ) { path = nnode . getChildNodes ( ) . item ( 0 ) . getNodeValue ( ) ; path = path . substring ( 1 , path . length ( ) - 1 ) ; } else if ( name . equals ( KEY_START ) ) { startPosition = Long . parseLong ( nnode . getChildNodes ( ) . item ( 0 ) . getNodeValue ( ) ) ; } } if ( type == null || path == null ) { throw new IllegalArgumentException ( "Illegal Archive Description" ) ; } ArchiveDescription archive = new ArchiveDescription ( type , path ) ; if ( startPosition > 0 ) { archive . setStartPosition ( startPosition ) ; } config . add ( archive ) ; }
Parses the input archive subsection.

@param node
Reference to the current used xml node
@param config
Reference to the ConfigSettings