public class BatCopyright extends AbstractCopyright
allrights, c, thisYear, UNKNOWN_DATE, ylpat, ylpat_YEAR, ypat, ypat_YEAR, ytpat| Constructor and Description |
|---|
BatCopyright(Copyright c) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
guessLineTerminator(Reader in)
Line terminator is always CRLF for .bat files.
|
protected String |
readComment(BufferedReader r)
Read the first comment block in the file.
|
protected void |
replaceCopyright(BufferedReader in,
BufferedWriter out,
String comment,
String lastChanged)
Skip the first comment block, replacing it with the correct copyright.
|
protected boolean |
supports(File file)
Is this a Windows .bat file?
|
protected String |
toComment(String comment)
Convert the comment text to .bat syntax.
|
protected void |
updateCopyright(BufferedReader in,
BufferedWriter out,
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 BatCopyright(Copyright c)
protected boolean supports(File file)
supports in class AbstractCopyrightprotected String readComment(BufferedReader r) throws IOException
readComment in class AbstractCopyrightIOExceptionprotected void replaceCopyright(BufferedReader in, BufferedWriter out, String comment, String lastChanged) throws IOException
replaceCopyright in class AbstractCopyrightIOExceptionprotected void updateCopyright(BufferedReader in, BufferedWriter out, String lastChanged) throws IOException
updateCopyright in class AbstractCopyrightIOExceptionprotected String guessLineTerminator(Reader in)
guessLineTerminator in class AbstractCopyrightprotected String toComment(String comment)
toComment in class AbstractCopyrightCopyright © 2017–2020 Eclipse Foundation. All rights reserved.