Package org.apache.rat.api

Examples of org.apache.rat.api.Document


     * @param file the file to be reported on
     * @throws RatException
     */
    private void report(final RatReport report, File file) throws RatException {

        Document document = new FileDocument(file);
        report.report(document);

    }
View Full Code Here


    }
   
    public Object transform(Object subject) {
        Object result = null;
        if (subject != null && subject instanceof Document) {
            Document location = (Document) subject;
            result = location.getName();
        }
        return result;
    }
View Full Code Here

     * @param file the file to be reported on
     * @throws RatException
     */
    private void report(final RatReport report, byte[] contents, File file) throws RatException {

        Document document = new ArchiveEntryDocument(file, contents);
        report.report(document);

    }
View Full Code Here

        final File[] resourceFiles = Resources.getResourceFiles(directory);
        if (resourceFiles.length == 0) {
            Assert.fail("No files found under "+directory);
        }
        for(File f : resourceFiles) {
            final Document subject = new MockLocation(f.toString());
            BufferedReader br = null;
            try {
                boolean result = false;
                br = Resources.getBufferedReader(f);
                String line;
View Full Code Here

TOP

Related Classes of org.apache.rat.api.Document

Copyright © 2018 www.massapicom. 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.