com.google.code.mojo.license.util
Class FileContent

java.lang.Object
  extended by com.google.code.mojo.license.util.FileContent

public final class FileContent
extends Object

Author:
Mathieu Carbou (mathieu.carbou@gmail.com)

Constructor Summary
FileContent(File file, String encoding)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileContent

public FileContent(File file,
                   String encoding)
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()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2011 Mathieu Carbou. All Rights Reserved.