01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.search.soif;
07:
08: import java.util.*;
09: import java.io.*;
10:
11: /**
12: * SOIFInputStream test routines.
13: */
14: class TestSOIFInputStream {
15:
16: static public void main(String[] args) throws Exception {
17: String fname = "d:/small37.dat";
18: if (args.length > 0)
19: fname = args[args.length - 1];
20: SOIFInputStream sp = new SOIFInputStream(new DataInputStream(
21: new BufferedInputStream(new FileInputStream(fname))));
22: SOIF s;
23: while ((s = sp.readSOIF()) != null) {
24: System.out.println(s);
25: }
26: }
27:
28: }
|