Examples of DocumentReader


Examples of org.jamesii.gui.syntaxeditor.DocumentReader

    assertEquals(original, output.toString());

    PlainDocument doc = new PlainDocument();
    doc.insertString(0, original, null);

    input = new DocumentReader(doc);
    output = new StringWriter();

    action.run(input, output);

    assertEquals(original, output.toString());
View Full Code Here

Examples of org.modeshape.jcr.spi.federation.DocumentReader

        return null;
    }

    private EditableDocument updateCachingTtl( Connector connector,
                                               EditableDocument editableDocument ) {
        DocumentReader reader = new FederatedDocumentReader(translator(), editableDocument);
        // there isn't a specific value set on the document, but the connector has a default value
        if (reader.getCacheTtlSeconds() == null && connector.getCacheTtlSeconds() != null) {
            DocumentWriter writer = new FederatedDocumentWriter(null, editableDocument);
            writer.setCacheTtlSeconds(connector.getCacheTtlSeconds());
            return writer.document();
        }
        return editableDocument;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.