lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markharw00d <markharw...@yahoo.co.uk>
Subject Re: Storing HashMap as an UnIndexed Field
Date Tue, 20 Sep 2005 20:46:49 GMT
Or using XMLEncoder:

        HashMap map=new HashMap();
        map.put("foo","bar");
        ByteArrayOutputStream baos=new ByteArrayOutputStream();
        XMLEncoder encoder =new XMLEncoder(baos);
        encoder.writeObject(map);
        encoder.flush();
        System.out.println(baos.toString());



	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message