All pastes #745465 Raw Edit

Untitled

public java v1 · immutable
·published 2007-10-22 12:49 UTC
rendered paste body
			try{				TextBox txt = new TextBox("Recordstore debug", null, 4096, TextField.ANY);				txt.addCommand(Jeckers.back);				txt.setCommandListener(MainCanvas.getMainCanvas());				Jeckers.display.setCurrent(txt);				String records[] = RecordStore.listRecordStores();				if(records == null)					return;				for(int i = 0; i < records.length; i++) {					txt.insert("Trovato record: " + records[i] + "\n", txt.size());					RecordStore record = RecordStore.openRecordStore(records[i], false);					txt.insert("\tcon " + record.getNumRecords() + " records", txt.size());					for(int j = 0; j < record.getNumRecords(); j++) {						txt.insert("--------------------------------------------", txt.size());						txt.insert(new String(record.getRecord(j)), txt.size());					}				}			}catch(RecordStoreException rse) { rse.printStackTrace(); }