< prev index next >

test/javax/xml/jaxp/functional/org/xml/sax/ptests/ResolverTest.java

Print this page




 126     }
 127 
 128     /**
 129      * Flush the content and close the file.
 130      * @throws IOException error happen when writing file or closing file.
 131      */
 132     @Override
 133     public void close() throws IOException {
 134         bWriter.flush();
 135         bWriter.close();
 136     }
 137 
 138     private String getFileName(String systemid) {
 139         try {
 140             return Paths.get(new URI(systemid)).getFileName().toString();
 141         } catch (URISyntaxException e) {
 142             throw new RuntimeException(e);
 143         }
 144     }
 145 }
 146 
 147 


 126     }
 127 
 128     /**
 129      * Flush the content and close the file.
 130      * @throws IOException error happen when writing file or closing file.
 131      */
 132     @Override
 133     public void close() throws IOException {
 134         bWriter.flush();
 135         bWriter.close();
 136     }
 137 
 138     private String getFileName(String systemid) {
 139         try {
 140             return Paths.get(new URI(systemid)).getFileName().toString();
 141         } catch (URISyntaxException e) {
 142             throw new RuntimeException(e);
 143         }
 144     }
 145 }


< prev index next >