Package org.apache.rat.api

Examples of org.apache.rat.api.RatException


                entry = input.getNextEntry();
            }

            input.close();
        } catch (IOException e) {
            throw new RatException(e);
        }
    }
View Full Code Here


    public void report(Document document) throws RatException {
        if (analyser != null) {
            try {
                analyser.analyse(document);
            } catch (RatDocumentAnalysisException e) {
                throw new RatException(e.getMessage(), e);
            }
        }
        for (Object reporter : reporters) {
            final RatReport report = (RatReport) reporter;
            report.report(document);
View Full Code Here

                writer.closeElement();
            }
            writer.openElement("resource").attribute(NAME, subject.getName());
            writeDocumentClaims(subject);
        } catch (IOException e) {
            throw new RatException("XML writing failure: " + e.getMessage()
                    + " subject: " + subject, e);
        }
    }
View Full Code Here

            writer.openElement("rat-report")
                .attribute("timestamp",
                           DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT
                           .format(Calendar.getInstance()));
        } catch (IOException e) {
            throw new RatException("Cannot open start element", e);
        }
    }
View Full Code Here

    public void endReport() throws RatException {
        try {
            writer.closeDocument();
        } catch (IOException e) {
            throw new RatException("Cannot close last element", e);
        }
    }
View Full Code Here

                entry = input.getNextEntry();
            }

            input.close();
        } catch (IOException e) {
            throw new RatException(e);
        }
    }
View Full Code Here

            final File file = new File(document.getName());
            if (file.isFile()) {
                try {
                    appender.append(file);
                } catch (IOException e) {
                    throw new RatException(e.getMessage(), e);
                }
            }
        }
    }
View Full Code Here

    public void report(Document document) throws RatException {
        if (analyser != null) {
            try {
                analyser.analyse(document);
            } catch (RatDocumentAnalysisException e) {
                throw new RatException(e.getMessage(), e);
            }
        }
        for (RatReport report : reporters) {
            report.report(document);
        }
View Full Code Here

                writer.closeElement();
            }
            writer.openElement("resource").attribute(NAME, subject.getName());
            writeDocumentClaims(subject);
        } catch (IOException e) {
            throw new RatException("XML writing failure: " + e.getMessage()
                    + " subject: " + subject, e);
        }
    }
View Full Code Here

            writer.openElement("rat-report")
                .attribute("timestamp",
                           DateFormatUtils.ISO_DATETIME_TIME_ZONE_FORMAT
                           .format(Calendar.getInstance()));
        } catch (IOException e) {
            throw new RatException("Cannot open start element", e);
        }
    }
View Full Code Here

TOP

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

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.