public class BatCopyright extends AbstractCopyright
allrights, c, thisYear, ylpat, ylpat_YEAR, ypat, ypat_YEAR, ytpat| Constructor and Description |
|---|
BatCopyright(Copyright c) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
readComment(java.io.BufferedReader r)
Read the first comment block in the file.
|
protected void |
repair(java.io.File file,
java.lang.String comment,
org.glassfish.copyright.AbstractCopyright.RepairType type)
Repair the c.errors in the file.
|
protected void |
replaceCopyright(java.io.BufferedReader in,
java.io.BufferedWriter out,
java.lang.String comment,
java.lang.String lastChanged)
Skip the first comment block, replacing it with the correct copyright.
|
protected boolean |
supports(java.io.File file)
Is this a Windows .bat file?
|
protected java.lang.String |
toComment(java.lang.String comment)
Convert the comment text to .properties syntax.
|
protected void |
updateCopyright(java.io.BufferedReader in,
java.io.BufferedWriter out,
java.lang.String lastChanged)
Update the existing copyright statement, changing the copyright
year to include lastChanged.
|
addCopyrightDate, checkCopyright, copy, err, findPrefix, fixCopyright, fixCopyright, getCopyrights, isModified, lastChanged, matches, matches, startsWith, startsWith, strip, warnCopyright, writeCopyrightpublic BatCopyright(Copyright c)
protected boolean supports(java.io.File file)
supports in class AbstractCopyrightprotected java.lang.String readComment(java.io.BufferedReader r)
throws java.io.IOException
readComment in class AbstractCopyrightjava.io.IOExceptionprotected void repair(java.io.File file,
java.lang.String comment,
org.glassfish.copyright.AbstractCopyright.RepairType type)
throws java.io.IOException
repair in class AbstractCopyrightjava.io.IOExceptionprotected void replaceCopyright(java.io.BufferedReader in,
java.io.BufferedWriter out,
java.lang.String comment,
java.lang.String lastChanged)
throws java.io.IOException
replaceCopyright in class AbstractCopyrightjava.io.IOExceptionprotected void updateCopyright(java.io.BufferedReader in,
java.io.BufferedWriter out,
java.lang.String lastChanged)
throws java.io.IOException
updateCopyright in class AbstractCopyrightjava.io.IOExceptionprotected java.lang.String toComment(java.lang.String comment)
toComment in class AbstractCopyrightCopyright © 2018 GlassFish Community. All Rights Reserved.