CloneSet904


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5220.967method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15147
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java
25164
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java
Next
Last
Clone Instance
1
Line Count
5
Source Line
147
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java

/**
 * Encode the image in a specific format and write it to an OutputStream.
 *
 * @param image  The image to be encoded.
 * @param format  The {@link ImageFormat} to use.
 * @param outputStream  The OutputStream to write the encoded image to.
 * @param quality  The quality to use for the image encoding (not 
 *                 supported by all ImageEncoders).
 * @throws IOException
 */
public static void writeBufferedImage(BufferedImage image, String format, OutputStream outputStream, float quality) throws IOException {
  ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format, quality);
  imageEncoder.encode(image, outputStream);
}


First
Previous
Clone Instance
2
Line Count
5
Source Line
164
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/encoders/EncoderUtil.java

/**
 * Encode the image in a specific format and write it to an OutputStream.
 *
 * @param image  The image to be encoded.
 * @param format  The {@link ImageFormat} to use.
 * @param outputStream  The OutputStream to write the encoded image to.
 * @param encodeAlpha  Whether to encode alpha transparency (not 
 *                     supported by all ImageEncoders).
 * @throws IOException
 */
public static void writeBufferedImage(BufferedImage image, String format, OutputStream outputStream, boolean encodeAlpha) throws IOException {
  ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format, encodeAlpha);
  imageEncoder.encode(image, outputStream);
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Encode the image in a specific format and write it to an OutputStream.
     *
     * @param image  The image to be encoded.
     * @param format  The {@link ImageFormat} to use.
     * @param outputStream  The OutputStream to write the encoded image to.
     * @param encodeAlpha  Whether to encode alpha transparency (not 
     *                     supported by all ImageEncoders).
     * @throws IOException
     */
/**
     * Encode the image in a specific format and write it to an OutputStream.
     *
     * @param image  The image to be encoded.
     * @param format  The {@link ImageFormat} to use.
     * @param outputStream  The OutputStream to write the encoded image to.
     * @param quality  The quality to use for the image encoding (not 
     *                 supported by all ImageEncoders).
     * @throws IOException
     */
public static void writeBufferedImage(BufferedImage image, String format, OutputStream outputStream, [[#variable18ddb760]]  [[#variable18ddb840]]) throws IOException {
  ImageEncoder imageEncoder = ImageEncoderFactory.newInstance(format,  [[#variable18ddb840]]);
  imageEncoder.encode(image, outputStream);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18ddb760]]
float 
12[[#18ddb760]]
boolean 
21[[#18ddb840]]
quality 
22[[#18ddb840]]
encodeAlpha