CloneSet467


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6310.951method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15332
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/Resource.java
26103
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/TarResource.java
36160
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/ZipResource.java
Next
Last
Clone Instance
1
Line Count
5
Source Line
332
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/Resource.java

/**
 * Get an OutputStream for the Resource.
 * @return an OutputStream to which content can be written.
 * @throws IOException if unable to provide the content of this
 *         Resource as a stream.
 * @throws UnsupportedOperationException if OutputStreams are not
 *         supported for this Resource type.
 * @since Ant 1.7
 */
public OutputStream getOutputStream() throws IOException {
  if (isReference()) {
    return ((Resource) getCheckedRef()).getOutputStream();
  }
  throw new UnsupportedOperationException();
}


Next
Previous
Clone Instance
2
Line Count
6
Source Line
103
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/TarResource.java

/**
 * Get an OutputStream for the Resource.
 * @return an OutputStream to which content can be written.
 * @throws IOException if unable to provide the content of this
 *         Resource as a stream.
 * @throws UnsupportedOperationException if OutputStreams are not
 *         supported for this Resource type.
 */
public OutputStream getOutputStream() throws IOException {
  if (isReference()) {
    return ((Resource) getCheckedRef()).getOutputStream();
  }
  throw new UnsupportedOperationException("Use the tar task for tar output.");
}


First
Previous
Clone Instance
3
Line Count
6
Source Line
160
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/ZipResource.java

/**
 * Get an OutputStream for the Resource.
 * @return an OutputStream to which content can be written.
 * @throws IOException if unable to provide the content of this
 *         Resource as a stream.
 * @throws UnsupportedOperationException if OutputStreams are not
 *         supported for this Resource type.
 */
public OutputStream getOutputStream() throws IOException {
  if (isReference()) {
    return ((Resource) getCheckedRef()).getOutputStream();
  }
  throw new UnsupportedOperationException("Use the zip task for zip output.");
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Get an OutputStream for the Resource.
     * @return an OutputStream to which content can be written.
     * @throws IOException if unable to provide the content of this
     *         Resource as a stream.
     * @throws UnsupportedOperationException if OutputStreams are not
     *         supported for this Resource type.
     */
/**
     * Get an OutputStream for the Resource.
     * @return an OutputStream to which content can be written.
     * @throws IOException if unable to provide the content of this
     *         Resource as a stream.
     * @throws UnsupportedOperationException if OutputStreams are not
     *         supported for this Resource type.
     * @since Ant 1.7
     */
public OutputStream getOutputStream() throws IOException {
  if (isReference()) {
    return ((Resource) getCheckedRef()).getOutputStream();
  }
  throw new UnsupportedOperationException [[#variable13136f40]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#13136f40]]
() 
12[[#13136f40]]
("Use the tar task for tar output.") 
13[[#13136f40]]
("Use the zip task for zip output.")