public class PropertiesCopyright extends AbstractCopyright
allrights, c, thisYear, ylpat, ylpat_YEAR, ypat, ypat_YEAR, ytpat| Constructor and Description |
|---|
PropertiesCopyright(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 |
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 properties file, or other file with similar syntax?
|
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, repair, startsWith, startsWith, strip, warnCopyright, writeCopyrightpublic PropertiesCopyright(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 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.