public class MarkdownCopyright extends AbstractCopyright
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
commentPrefix |
protected java.lang.String |
commentSuffix |
allrights, c, thisYear, ylpat, ylpat_YEAR, ypat, ypat_YEAR, ytpat| Constructor and Description |
|---|
MarkdownCopyright(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 markdown file?
|
protected java.lang.String |
toComment(java.lang.String comment)
Convert the comment text to markdown 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, writeCopyrightprotected java.lang.String commentPrefix
protected java.lang.String commentSuffix
public MarkdownCopyright(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.