Class FileContent
- java.lang.Object
-
- com.google.code.mojo.license.util.FileContent
-
public final class FileContent extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
file
private java.lang.StringBuilder
fileContent
private int
oldPos
private int
position
private boolean
unix
-
Constructor Summary
Constructors Constructor Description FileContent(java.io.File file, java.lang.String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(int start, int end)
boolean
endReached()
java.lang.String
getContent()
int
getPosition()
void
insert(int index, java.lang.String str)
boolean
isUnix()
java.lang.String
nextLine()
void
removeDuplicatedEmptyEndLines()
void
reset()
void
resetTo(int pos)
void
rewind()
java.lang.String
toString()
-
-
-
Method Detail
-
resetTo
public void resetTo(int pos)
-
reset
public void reset()
-
rewind
public void rewind()
-
endReached
public boolean endReached()
-
nextLine
public java.lang.String nextLine()
-
getPosition
public int getPosition()
-
delete
public void delete(int start, int end)
-
insert
public void insert(int index, java.lang.String str)
-
removeDuplicatedEmptyEndLines
public void removeDuplicatedEmptyEndLines()
-
getContent
public java.lang.String getContent()
-
isUnix
public boolean isUnix()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-