Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Object getBinarySearchTree() {
- File f = new File(DEFAULT_MAPS_DIRECTORY_PATH + "/binfiles/cz/czbst1.bin");
- BufferedInputStream b = null;
- ObjectInputStream reader = null;
- try {
- b = new BufferedInputStream(new FileInputStream(f));
- reader = new ObjectInputStream(b);
- Object o = reader.readObject();
- return o;
- }
- catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- finally {
- try {
- b.close();
- reader.close();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment