- /*
- * What's OLFT?
- * This is the result of OLFT's Java Module.
- * It makes the online reading comfortable. At least ,I think so.
- */
- package com.trydofor.olft.impls;
- import java.util.*;
- public class OLFT4J implements OLFT{
- /*
- * OLFT can syntax highlighting and bracket matching.
- */
- public static Hashtable POOL = new Hashtable(; //JDK's class
- private int port = 1009; //number
- private final String info = "this is a test of OLFT";// string
- private boolean isFresh = true;
- private Object locker = new Object(;
-
- private void build(StringBuffer content{
- if(isFresh{
- synchronized(locker{
- if(isFresh{
- POOL.put("another string",content;
- isFresh = false;
-
-
-
-
-
- public String getInfo({
- return info;
-
-
- public static void main(String[ args{
- try {
- if(args.length!=2{
- System.out.println("use: [u|i|j] fileName";
- System.exit(1;
- else{
- switch(args[0.charAt(0{
- case 'u':
- break;
- case 'i':
- break;
- case 'j':
- break;
- default:
- System.out.println("use: [u|i|j] fileName";
- System.exit(1;
-
-
- catch (Exception e {
- //ignore
- finally{
- //ignore
-
-
-
|