View Single Post
Old 10-28-2010, 08:55 PM   #7
anmipo
Junior Member
anmipo doesn't litteranmipo doesn't litter
 
Posts: 9
Karma: 136
Join Date: Oct 2010
Device: Kindle 3
Quote:
Originally Posted by Polvo View Post
Great work! Is there a (Java) editor that can edit these serialised data files directly?
None that I know of...
However, it's easy to read/write this file from your own Java program:
Code:
//open an input stream for bookmarks_wv
ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
ArrayList<BookmarkItem> bookmarks = (ArrayList<BookmarkItem>) objectInputStream.readObject();

//do something with the bookmarks

ObjectOutputStream objectOutputStream = new ObjectOutputStream(outStream);
objectOutputStream.writeObject(bookmarks);
//close streams
anmipo is offline   Reply With Quote