|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.glassfish.copyright.AbstractCopyright
org.glassfish.copyright.BatCopyright
public class BatCopyright
| Field Summary |
|---|
| Fields inherited from class org.glassfish.copyright.AbstractCopyright |
|---|
allrights, c, licensor, thisYear, ypat |
| Constructor Summary | |
|---|---|
BatCopyright(Copyright c)
|
|
| Method Summary | |
|---|---|
protected String |
readComment(BufferedReader r)
Read the first comment block in the file. |
protected void |
repair(File file,
String comment,
org.glassfish.copyright.AbstractCopyright.RepairType type)
Repair the c.errors 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 .properties syntax. |
protected void |
updateCopyright(BufferedReader in,
BufferedWriter out,
String lastChanged)
Update the existing copyright statement, changing the copyright year to include lastChanged. |
| Methods inherited from class org.glassfish.copyright.AbstractCopyright |
|---|
addCopyrightDate, checkCopyright, copy, err, findPrefix, fixCopyright, isModified, lastChanged, matches, startsWith, startsWith, strip, warnCopyright, writeCopyright |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BatCopyright(Copyright c)
| Method Detail |
|---|
protected boolean supports(File file)
supports in class AbstractCopyright
protected String readComment(BufferedReader r)
throws IOException
readComment in class AbstractCopyrightIOException
protected void repair(File file,
String comment,
org.glassfish.copyright.AbstractCopyright.RepairType type)
throws IOException
repair in class AbstractCopyrightIOException
protected void replaceCopyright(BufferedReader in,
BufferedWriter out,
String comment,
String lastChanged)
throws IOException
replaceCopyright in class AbstractCopyrightIOException
protected void updateCopyright(BufferedReader in,
BufferedWriter out,
String lastChanged)
throws IOException
updateCopyright in class AbstractCopyrightIOExceptionprotected String toComment(String comment)
toComment in class AbstractCopyright
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||