FileDocCategorySizeDatePackage
ReadHistNS.javaAPI DocExample597Sat Jun 24 20:10:14 BST 2000None

ReadHistNS

public class ReadHistNS extends Object
Demonstration of reading the MS-Windows Netscape History under UNIX using DBM.java.
version
$Id: ReadHistNS.java,v 1.2 2000/06/24 23:10:15 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] unused)

		DBM d = new DBM("netscape.hst");
		byte[] ba;
		for (ba = d.firstkey(); ba != null; ba = d.nextkey(ba)) {
			System.out.println("Key=\"" + new String(ba) + '"");
			byte[] val = d.fetch(ba);
			for (int i=0; i<16&&i<val.length; i++) {
				System.out.print((short)val[i]);
				System.out.print(' ");
			}
		}