⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
com.inamidst.jmisc

Class EnumLines

java.lang.Object
|
+--com.inamidst.jmisc.EnumLines


public class EnumLines
extends java.lang.Object

EnumLines - Annotate input with lines and filenames Good for testing out new Java installations, and suchlike. License: GPL 2; share and enjoy!
Author:
Sean B. Palmer, inamidst.com

Method Summary

void

barf(String msg)

Display an error message for a given filename

void

enumerate()

Enumerate a file from currently set filename.

void

fromFilename(String fn)

fromFilename - Enumerate a file from its filename.

static void

main(String[] args)

Reads filenames from argv and outputs lines annotated with filename and line.

Method Details

barf

public void barf(String msg)

Display an error message for a given filename

Parameters:
msg - Error message

enumerate

public void enumerate()

Enumerate a file from currently set filename.


fromFilename

public void fromFilename(String fn)

fromFilename - Enumerate a file from its filename.

Parameters:
fn - Filename to read from.

main

public static void main(String[] args)

Reads filenames from argv and outputs lines annotated with filename and line.

Parameters:
args - ARGV[1:].