List of usage examples for java.io LineNumberInputStream setLineNumber
public void setLineNumber(int lineNumber)
From source file:Main.java
public static void main(String[] args) throws IOException { FileInputStream fis = new FileInputStream("C:/test.txt"); LineNumberInputStream lnis = new LineNumberInputStream(fis); lnis.setLineNumber(100); int i = lnis.getLineNumber(); System.out.print("Line number: " + i); }