/* ---------------------------------------------------------------- // Function Name : main // Date Written : 03/04/2008 // Author : yogvinder // Input Parameters : // Output Parameters : None // Return Values : void // Description : // ---------------------------------------------------------------- */ public static void main(String[] args) throws Exception { ServiceConfiguration.initLog(); ServiceConfiguration.initServiceProperties(true); AttachAnnotationByFEAPForTransfer ap = new AttachAnnotationByFEAPForTransfer( ServiceConfiguration.serviceLog, "supervisor", "supervisor351", "division_060", "192.168.5.45", "3333"); File f = new File("D:\\abc1.txt"); FileReader fr = new FileReader(f); String contents = ""; int x = 0; while ((x = fr.read()) != -1) { contents = contents + (char) x; } AnnotationBuffer abr = generateAnnotationBuffer(contents); System.out.println(abr); abr.removeAnnotation("1"); System.out.println(abr); }