public void load(InputStream inStream) throws IOException {
  Properties properties=new Properties();
  properties.load(inStream);
  for (  Map.Entry<Object,Object> property : properties.entrySet()) {
    String handleId=(String)property.getKey();
    String value=(String)property.getValue();
    PropertyTable handleProperties=new PropertyTable();
    JSONObject jsonObject=(JSONObject)JSONValue.parse(value);
    if (jsonObject != null) {
      handleProperties.putAll(jsonObject);
    }
    Handle handle=new Handle();
    handle.setId(handleId);
    handle.setProperties(handleProperties);
    handles.put(handleId,handle);
  }
}

public void load ( InputStream inStream ) throws IOException { Properties properties = new Properties ( ) ; properties . load ( inStream ) ; for ( Map . Entry < Object , Object > property : properties . entrySet ( ) ) { String handleId = ( String ) property . getKey ( ) ; String value = ( String ) property . getValue ( ) ; PropertyTable handleProperties = new PropertyTable ( ) ; JSONObject jsonObject = ( JSONObject ) JSONValue . parse ( value ) ; if ( jsonObject != null ) { handleProperties . putAll ( jsonObject ) ; } Handle handle = new Handle ( ) ; handle . setId ( handleId ) ; handle . setProperties ( handleProperties ) ; handles . put ( handleId , handle ) ; } }
loads the handles database from disk
