public Feed getFeedDocument ( ) throws AtomException { InputStream in = null ; synchronized ( FileStore . getFileStore ( ) ) { in = FileStore . getFileStore ( ) . getFileInputStream ( getFeedPath ( ) ) ; if ( in == null ) { in = createDefaultFeedDocument ( contextURI + servletPath + "/" + handle + "/" + collection ) ; } } try { final WireFeedInput input = new WireFeedInput ( ) ; final WireFeed wireFeed = input . build ( new InputStreamReader ( in , "UTF-8" ) ) ; return ( Feed ) wireFeed ; } catch ( final Exception ex ) { throw new AtomException ( ex ) ; } }
Get feed document representing collection .