public Collection getReaders ( Object obj ) { Collection result = null ; try { Identity oid = new Identity ( obj , getBroker ( ) ) ; byte selector = ( byte ) ' ' ; byte [ ] requestBarr = buildRequestArray ( oid , selector ) ; HttpURLConnection conn = getHttpUrlConnection ( ) ; //post request BufferedOutputStream out = new BufferedOutputStream ( conn . getOutputStream ( ) ) ; out . write ( requestBarr , 0 , requestBarr . length ) ; out . flush ( ) ; // read result from InputStream in = conn . getInputStream ( ) ; ObjectInputStream ois = new ObjectInputStream ( in ) ; result = ( Collection ) ois . readObject ( ) ; // cleanup ois . close ( ) ; out . close ( ) ; conn . disconnect ( ) ; } catch ( Throwable t ) { throw new PersistenceBrokerException ( t ) ; } return result ; }
returns a collection of Reader LockEntries for object obj . If now LockEntries could be found an empty Vector is returned .