The following document contains the results of PMD's CPD 5.0.2.
File | Line |
---|---|
com\legstar\coxb\transform\AbstractHostToJsonTransformer.java | 80 |
com\legstar\coxb\transform\AbstractHostToXmlTransformer.java | 81 |
getJsonFromObject(valueObject, writer); } /** * Transforms host data to JSON with a specific host character set. * * @param hostData a byte array containing host data * @param offset index of first byte to process in hostData * @param writer JSON will be sent to this writer. * @param hostCharset the host character set * @throws HostTransformException if transformation fails */ public void transform( final byte[] hostData, final int offset, final Writer writer, final String hostCharset) throws HostTransformException { transform(hostData, offset, writer, hostCharset, new HostTransformStatus()); } /** * Transforms host data to JSON with a specific host character set. * * @param hostData a byte array containing host data * @param writer JSON will be sent to this writer. * @param hostCharset the host character set * @throws HostTransformException if transformation fails */ public void transform( final byte[] hostData, final Writer writer, final String hostCharset) throws HostTransformException { transform(hostData, 0, writer, hostCharset); } /** * Transforms host data to JSON. * * @param hostData a byte array containing host data * @param writer JSON will be sent to this writer. * @throws HostTransformException if transformation fails */ public void transform( final byte[] hostData, final Writer writer) throws HostTransformException { transform(hostData, 0, writer, (String) null); } /** * Transforms host data to JSON. * * @param hostData a byte array containing host data * @param offset index of first byte to process in hostData * @param writer JSON will be sent to this writer. * @throws HostTransformException if transformation fails */ public void transform( final byte[] hostData, final int offset, final Writer writer) throws HostTransformException { transform(hostData, offset, writer, (String) null); } /** * Transforms host data to JSON with a specific host character set. * * @param hostData a byte array containing host data * @param writer JSON will be sent to this writer. * @param hostCharset the host character set * @param status will contain information on the transformation after it is * executed * @throws HostTransformException if transformation fails */ public void transform( final byte[] hostData, final Writer writer, final String hostCharset, final HostTransformStatus status) throws HostTransformException { transform(hostData, 0, writer, hostCharset, status); } /** * Transforms host data to JSON. * * @param hostData a byte array containing host data * @param writer JSON will be sent to this writer. * @param status will contain information on the transformation after it is * executed * @throws HostTransformException if transformation fails */ public void transform( final byte[] hostData, final Writer writer, final HostTransformStatus status) throws HostTransformException { transform(hostData, 0, writer, (String) null, status); } /** * Transforms host data to JSON. * * @param hostData a byte array containing host data * @param offset index of first byte to process in hostData * @param writer JSON will be sent to this writer. * @param status will contain information on the transformation after it is * executed * @throws HostTransformException if transformation fails */ public void transform( final byte[] hostData, final int offset, final Writer writer, final HostTransformStatus status) throws HostTransformException { transform(hostData, offset, writer, (String) null, status); } |
File | Line |
---|---|
com\legstar\coxb\transform\IHostToJsonTransformer.java | 20 |
com\legstar\coxb\transform\IHostToXmlTransformer.java | 20 |
public interface IHostToJsonTransformer { /** * Transforms host data to JSON with a specific host character set. * * @param hostData a byte array containing host data * @param writer JSON will be sent to this writer. * @param hostCharset the host character set * @throws HostTransformException if transformation fails */ void transform( final byte[] hostData, final Writer writer, final String hostCharset) throws HostTransformException; /** * Transforms host data to JSON with a specific host character set. * * @param hostData a byte array containing host data * @param offset index of first byte to process in hostData * @param writer JSON will be sent to this writer. * @param hostCharset the host character set * @throws HostTransformException if transformation fails */ void transform( final byte[] hostData, final int offset, final Writer writer, final String hostCharset) throws HostTransformException; /** * Transforms host data to JSON. * * @param hostData a byte array containing host data * @param writer JSON will be sent to this writer. * @throws HostTransformException if transformation fails */ void transform( final byte[] hostData, final Writer writer) throws HostTransformException; /** * Transforms host data to JSON. * * @param hostData a byte array containing host data * @param offset index of first byte to process in hostData * @param writer JSON will be sent to this writer. * @throws HostTransformException if transformation fails */ void transform( final byte[] hostData, final int offset, final Writer writer) throws HostTransformException; /** * Transforms host data to JSON with a specific host character set. * * @param hostData a byte array containing host data * @param writer JSON will be sent to this writer. * @param hostCharset the host character set * @param status will contain information on the transformation after it is * executed * @throws HostTransformException if transformation fails */ void transform( final byte[] hostData, final Writer writer, final String hostCharset, final HostTransformStatus status) throws HostTransformException; /** * Transforms host data to JSON with a specific host character set. * * @param hostData a byte array containing host data * @param offset index of first byte to process in hostData * @param writer JSON will be sent to this writer. * @param hostCharset the host character set * @param status will contain information on the transformation after it is * executed * @throws HostTransformException if transformation fails */ void transform( final byte[] hostData, final int offset, final Writer writer, final String hostCharset, final HostTransformStatus status) throws HostTransformException; /** * Transforms host data to JSON. * * @param hostData a byte array containing host data * @param writer JSON will be sent to this writer. * @param status will contain information on the transformation after it is * executed * @throws HostTransformException if transformation fails */ void transform( final byte[] hostData, final Writer writer, final HostTransformStatus status) throws HostTransformException; /** * Transforms host data to JSON. * * @param hostData a byte array containing host data * @param offset index of first byte to process in hostData * @param writer JSON will be sent to this writer. * @param status will contain information on the transformation after it is * executed * @throws HostTransformException if transformation fails */ void transform( final byte[] hostData, final int offset, final Writer writer, final HostTransformStatus status) throws HostTransformException; } |