Class FileContent
- java.lang.Object
-
- com.google.code.mojo.license.util.FileContent
-
public final class FileContent extends Object
- Author:
- Mathieu Carbou (mathieu.carbou@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description FileContent(File file, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(int start, int end)
boolean
endReached()
String
getContent()
int
getPosition()
void
insert(int index, String str)
boolean
isUnix()
String
nextLine()
void
removeDuplicatedEmptyEndLines()
void
reset()
void
resetTo(int pos)
void
rewind()
String
toString()
-
-
-
Method Detail
-
resetTo
public void resetTo(int pos)
-
reset
public void reset()
-
rewind
public void rewind()
-
endReached
public boolean endReached()
-
nextLine
public String nextLine()
-
getPosition
public int getPosition()
-
delete
public void delete(int start, int end)
-
insert
public void insert(int index, String str)
-
removeDuplicatedEmptyEndLines
public void removeDuplicatedEmptyEndLines()
-
getContent
public String getContent()
-
isUnix
public boolean isUnix()
-
-