void delete(URI uri, Map<?, ?> options) throws IOException; /** * Returns a map from String properties to their corresponding values representing a description the given URI's contents. * See the {@link ContentHandler#contentDescription(URI, InputStream, Map, Map) content handler} for more details. * @param uri the URI to consider. * @param options options to influence how the content description is determined, or <code>null</code> if there are no options. * @return a map from String properties to their corresponding values representing a description the given URI's contents. * @throws IOException if there is a problem accessing the contents. * @see ContentHandler#contentDescription(URI, InputStream, Map, Map) * @since 2.4 */ Map<String, ?> contentDescription(URI uri, Map<?, ?> options) throws IOException; /** * Returns whether the given URI has contents. * If the URI {@link #exists(URI, Map) exists} * it will be possible to {@link #createOutputStream(URI, Map) create} an input stream. * @param uri the URI to consider. * @param options options to influence how the existence determined, or <code>null</code> if there are no options. * @return whether the given URI has contents. * @since 2.4 */ boolean exists(URI uri, Map<?, ?> options);
void delete(URI uri, Map<?, ?> options) throws IOException; /** * Returns a map from String properties to their corresponding values representing a description the given URI's contents. * See the {@link ContentHandler#contentDescription(URI, InputStream, Map, Map) content handler} for more details. * @param uri the URI to consider. * @param options options to influence how the content description is determined, or <code>null</code> if there are no options. * @return a map from String properties to their corresponding values representing a description the given URI's contents. * @throws IOException if there is a problem accessing the contents. * @see URIConverter#contentDescription(URI, Map) * @see ContentHandler#contentDescription(URI, InputStream, Map, Map) */ Map<String, ?> contentDescription(URI uri, Map<?, ?> options) throws IOException; /** * Returns whether the given URI has contents. * If the URI {@link #exists(URI, Map) exists} * it will be possible to {@link #createOutputStream(URI, Map) create} an input stream. * @param uri the URI to consider. * @param options options to influence how the existence determined, or <code>null</code> if there are no options. * @return whether the given URI has contents. * @see URIConverter#exists(URI, Map) */ boolean exists(URI uri, Map<?, ?> options);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/URIConverter.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/URIHandler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void delete(URI uri, Map<?, ?> options) throws IOException;
1
void delete(URI uri, Map<?, ?> options) throws IOException;
2
  /**
2
  /**
3
   * Returns a map from String properties to their corresponding values representing a description the given URI's contents.
3
   * Returns a map from String properties to their corresponding values representing a description the given URI's contents.
4
   * See the {@link ContentHandler#contentDescription(URI, InputStream, Map, Map) content handler} for more details.
4
   * See the {@link ContentHandler#contentDescription(URI, InputStream, Map, Map) content handler} for more details.
5
   * @param uri the URI to consider.
5
   * @param uri the URI to consider.
6
   * @param options options to influence how the content description is determined, or <code>null</code> if there are no options.
6
   * @param options options to influence how the content description is determined, or <code>null</code> if there are no options.
7
   * @return a map from String properties to their corresponding values representing a description the given URI's contents.
7
   * @return a map from String properties to their corresponding values representing a description the given URI's contents.
8
   * @throws IOException if there is a problem accessing the contents.
8
   * @throws IOException if there is a problem accessing the contents.
9
   * @see URIConverter#contentDescription(URI, Map)
9
   * @see ContentHandler#contentDescription(URI, InputStream, Map, Map)
10
   * @see ContentHandler#contentDescription(URI, InputStream, Map, Map)
10
   * @since 2.4
11
   */
11
   */
12
  Map<String, ?> contentDescription(URI uri, Map<?, ?> options) throws IOException;
12
  Map<String, ?> contentDescription(URI uri, Map<?, ?> options) throws IOException;
13
  /**
13
  /**
14
   * Returns whether the given URI has contents.
14
   * Returns whether the given URI has contents.
15
   * If the URI {@link #exists(URI, Map) exists}
15
   * If the URI {@link #exists(URI, Map) exists}
16
   * it will be possible to {@link #createOutputStream(URI, Map) create} an input stream.
16
   * it will be possible to {@link #createOutputStream(URI, Map) create} an input stream.
17
   * @param uri the URI to consider.
17
   * @param uri the URI to consider.
18
   * @param options options to influence how the existence determined, or <code>null</code> if there are no options.
18
   * @param options options to influence how the existence determined, or <code>null</code> if there are no options.
19
   * @return whether the given URI has contents.
19
   * @return whether the given URI has contents.
20
   * @since 2.4
20
   * @see URIConverter#exists(URI, Map)
21
   */
21
   */
22
  boolean exists(URI uri, Map<?, ?> options);
22
  boolean exists(URI uri, Map<?, ?> options);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0