Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
18 | 2 | 3 | 0.971 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 18 | 357 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIConverterImpl.java |
2 | 18 | 566 | E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIConverterImpl.java |
| |||||
/** * Creates an output stream for the URI, assuming it's a URI recognized by the Eclipse File System, and returns it. * @return an open output stream. * @exception IOException if there is a problem obtaining an open output stream. */ protected OutputStream createEFSOutputStream(URI uri) throws IOException { if (EFS_GET_STORE_METHOD != null) { try { Object store = EFS_GET_STORE_METHOD.invoke(null, new java.net.URI(uri.toString())); if (store != null) { return (OutputStream) FILE_STORE_OPEN_OUTPUT_STREAM_METHOD.invoke(store, 0, null); } } catch (Exception exception) { throw new Resource.IOWrappedException(exception); } } throw new IOException("EFS unavailable"); } |
| |||||
/** * Creates an input stream for the URI, assuming it's a URI recognized by the Eclipse File System, and returns it. * @return an open input stream. * @exception IOException if there is a problem obtaining an open input stream. */ protected InputStream createEFSInputStream(URI uri) throws IOException { if (EFS_GET_STORE_METHOD != null) { try { Object store = EFS_GET_STORE_METHOD.invoke(null, new java.net.URI(uri.toString())); if (store != null) { return (InputStream) FILE_STORE_OPEN_INPUT_STREAM_METHOD.invoke(store, 0, null); } } catch (Exception exception) { throw new Resource.IOWrappedException(exception); } } throw new IOException("EFS unavailable"); } |
| |||
/** * Creates an input stream for the URI, assuming it's a URI recognized by the Eclipse File System, and returns it. * @return an open input stream. * @exception IOException if there is a problem obtaining an open input stream. */ /** * Creates an output stream for the URI, assuming it's a URI recognized by the Eclipse File System, and returns it. * @return an open output stream. * @exception IOException if there is a problem obtaining an open output stream. */ protected [[#variable1727e2a0]] [[#variable1727e200]](URI uri) throws IOException { if (EFS_GET_STORE_METHOD != null) { try { Object store = EFS_GET_STORE_METHOD.invoke(null, new java.net.URI(uri.toString())); if (store != null) { return ( [[#variable1727e2a0]]) [[#variable1727e180]].invoke(store, 0, null); } } catch (Exception exception) { throw new Resource.IOWrappedException(exception); } } throw new IOException("EFS unavailable"); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1727e2a0]] | OutputStream |
1 | 2 | [[#1727e2a0]] | InputStream |
2 | 1 | [[#1727e200]] | createEFSOutputStream |
2 | 2 | [[#1727e200]] | createEFSInputStream |
3 | 1 | [[#1727e180]] | FILE_STORE_OPEN_OUTPUT_STREAM_METHOD |
3 | 2 | [[#1727e180]] | FILE_STORE_OPEN_INPUT_STREAM_METHOD |