All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.altova.text.flex.DocumentReader Maven / Gradle / Ivy

There is a newer version: 2.0.4
Show newest version
////////////////////////////////////////////////////////////////////////
//
// DocumentReader.java
//
// This file was generated by MapForce 2017sp2.
//
// YOU SHOULD NOT MODIFY THIS FILE, BECAUSE IT WILL BE
// OVERWRITTEN WHEN YOU RE-RUN CODE GENERATION.
//
// Refer to the MapForce Documentation for further details.
// http://www.altova.com/mapforce
//
////////////////////////////////////////////////////////////////////////

package com.altova.text.flex;

import com.altova.text.*;

public class DocumentReader {
	private Range range;
	private Generator outputGenerator;
	
	public DocumentReader(String content, Generator generator) {
		this.outputGenerator = generator;
		this.range = new Range(content);
	}
	
	public DocumentReader(DocumentReader doc) {
		this.range = new Range(doc.getRange());
		this.outputGenerator = doc.getOutputTree();
	}
	
	public DocumentReader(DocumentReader doc, Range range) {
		this.range = new Range(range);
		this.outputGenerator = doc.getOutputTree();
	}
	
	public Generator getOutputTree() {
		return outputGenerator;
	}
	
	public Range getRange() {
		return range;
	}
	
	public String getContent() {
		return range.getContent();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy