Skip to content

Commit 273d293

Browse files
committed
WIP fix Javadocs warnings
1 parent ee635db commit 273d293

File tree

13 files changed

+105
-53
lines changed

13 files changed

+105
-53
lines changed

src/main/java/org/apache/commons/imaging/color/ColorConversions.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,15 @@
1919

2020
public final class ColorConversions {
2121

22+
/*
23+
* These constants are for CIEXYZ to CIELAB conversion.
24+
* For reference: <a href="https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIEXYZ_to_CIELAB">From CIEXYZ to CIELAB, from CIELAB color space<a/>
25+
*/
2226
// White reference
23-
/** see: https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIEXYZ_to_CIELAB[10] */
2427
private static final double REF_X = 95.047; // Observer= 2°, Illuminant= D65
25-
26-
/** see: https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIEXYZ_to_CIELAB[10] */
2728
private static final double REF_Y = 100.000;
28-
29-
/** see: https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIEXYZ_to_CIELAB[10] */
3029
private static final double REF_Z = 108.883;
31-
32-
/** see: https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIEXYZ_to_CIELAB[10] */
3330
private static final double XYZ_m = 7.787037; // match in slope. Note commonly seen 7.787 gives worse results
34-
35-
/** see: https://en.wikipedia.org/wiki/CIELAB_color_space#From_CIEXYZ_to_CIELAB[10] */
3631
private static final double XYZ_t0 = 0.008856;
3732

3833
private ColorConversions() {

src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/Dct.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,10 @@ public static void forwardDCT8x8(final float[] matrix) {
252252

253253
/**
254254
* Fast inverse Dct using AA&N. This is taken from the beautiful
255-
* http://vsr.finermatik.tu-chemnitz.de/~jan/MPEG/HTML/IDCT.html which gives
256-
* easy equations and properly explains constants and scaling factors. Terms
257-
* have been inlined and the negation optimized out of existence.
255+
* <a href="http://vsr.finermatik.tu-chemnitz.de/~jan/MPEG/HTML/IDCT.html">(broken link)</a>
256+
* which gives easy equations and properly explains constants and
257+
* scaling factors. Terms have been inlined and the negation
258+
* optimized out of existence.
258259
*/
259260
public static void inverseDCT8(final float[] vector) {
260261
// B1

src/main/java/org/apache/commons/imaging/formats/jpeg/segments/App14Segment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.nio.charset.StandardCharsets;
2525

2626
/**
27-
* http://www.aiim.org/documents/standards/PDF-Ref/References/Adobe/5116.DCT_Filter.pdf
27+
* @see <a href="https://web.archive.org/web/20220122061015/http://www.lprng.com/RESOURCES/ADOBE/5116.DCT_Filter.pdf">Supporting the DCT Filters in PostScript Level 2</a>
2828
*/
2929
public class App14Segment extends AppnSegment {
3030
private static final byte[] ADOBE_PREFIX;

src/main/java/org/apache/commons/imaging/formats/tiff/TiffReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ private TiffImageData getTiffRawImageData(final ByteSource byteSource,
440440
rowsPerStrip = rowsPerStripField.getIntValue();
441441
} else {
442442
final TiffField imageHeight = directory.findField(TiffTagConstants.TIFF_TAG_IMAGE_LENGTH);
443-
/**
443+
/*
444444
* if rows per strip not present then rowsPerStrip is equal to
445445
* imageLength or an infinity value;
446446
*/

src/main/java/org/apache/commons/imaging/formats/tiff/constants/AdobePageMaker6TagConstants.java

Lines changed: 52 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,47 +28,88 @@
2828
import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoShort;
2929

3030
/**
31-
* TIFF specification supplement 1
32-
* <BR>
33-
* Enhancements for Adobe PageMaker(R) 6.0 software
34-
* <BR>
35-
* http://partners.adobe.com/public/developer/en/tiff/TIFFPM6.pdf
31+
* TIFF specification supplement 1.
32+
*
33+
* @see <a href="https://web.archive.org/web/20180810205521/https://www.adobe.io/content/udp/en/open/standards/TIFF/_jcr_content/contentbody/download_1704706507/file.res/TIFFPM6.pdf">Adobe PageMaker(R) 6.0 TIFF Technical Notes</a>
3634
*/
3735
public final class AdobePageMaker6TagConstants {
3836

37+
/**
38+
* SubIFDs.
39+
*
40+
* <p>Each value is an offset (from the beginning of the TIFF file, as always) to a child
41+
* IFD. Child images provide extra information for the parent image—such as a
42+
* sub-sampled version of the parent image.</p>
43+
*/
3944
public static final TagInfoLongOrIFD TIFF_TAG_SUB_IFD = new TagInfoLongOrIFD(
4045
"SubIFDs", 0x014a, -1,
4146
TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN, true);
42-
47+
/**
48+
* ClipPath.
49+
*
50+
* <p>A TIFF ClipPath is intended to mirror the essentials of PostScript's path creation
51+
* functionality, so that the operators listed below can be easily translated into
52+
* PostScript, and, conversely, any PostScript path can be represented as a TIFF
53+
* ClipPath.</p>
54+
*/
4355
public static final TagInfoBytes TIFF_TAG_CLIP_PATH = new TagInfoBytes(
4456
"ClipPath", 0x0157, -1,
4557
TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
4658

59+
/**
60+
* XClipPathUnits.
61+
*
62+
* <p>The number of units that span the width of the image, in terms of integer ClipPath
63+
* coordinates.</p>
64+
*/
4765
public static final TagInfoLong TIFF_TAG_XCLIP_PATH_UNITS = new TagInfoLong(
4866
"XClipPathUnits", 0x0158,
4967
TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
5068

69+
/**
70+
* YClipPathUnits.
71+
*
72+
* <p>The number of units that span the height of the image, in terms of integer ClipPath
73+
* coordinates.</p>
74+
*/
5175
public static final TagInfoLong TIFF_TAG_YCLIP_PATH_UNITS = new TagInfoLong(
5276
"YClipPathUnits", 0x0159,
5377
TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
5478

79+
/**
80+
* Indexed.
81+
*
82+
* <p>Indexed images are images where the "pixels" do not represent color values, but
83+
* rather an index (usually 8-bit) into a separate color table, the ColorMap.
84+
* ColorMap is required for an Indexed image.</p>
85+
*/
5586
public static final TagInfoShort TIFF_TAG_INDEXED = new TagInfoShort(
5687
"Indexed", 0x015a,
5788
TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
5889

59-
public static final int INDEXED_VALUE_NOT_INDEXED = 0;
60-
public static final int INDEXED_VALUE_INDEXED = 1;
61-
90+
/**
91+
* OPIProxy.
92+
*
93+
* <p>OPIProxy gives information concerning whether this image is a low-resolution
94+
* proxy of a high-resolution image.</p>
95+
*/
6296
public static final TagInfoShort TIFF_TAG_OPIPROXY = new TagInfoShort(
6397
"OPIProxy", 0x015f,
6498
TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
65-
public static final int OPIPROXY_VALUE_HIGHER_RESOLUTION_IMAGE_DOES_NOT_EXIST = 0;
66-
public static final int OPIPROXY_VALUE_HIGHER_RESOLUTION_IMAGE_EXISTS = 1;
6799

100+
/**
101+
* ImageID.
102+
*
103+
* <p>ImageID is the full pathname of the original, high-resolution image, or any other
104+
* identifying string that uniquely identifies the original image.</p>
105+
*/
68106
public static final TagInfoAscii TIFF_TAG_IMAGE_ID = new TagInfoAscii(
69107
"ImageID", 0x800d, -1,
70108
TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
71109

110+
/**
111+
* A list with all the Adobe PageMaker 6 tags.
112+
*/
72113
public static final List<TagInfo> ALL_ADOBE_PAGEMAKER_6_TAGS =
73114
Collections.unmodifiableList(Arrays.asList(
74115
TIFF_TAG_SUB_IFD,

src/main/java/org/apache/commons/imaging/formats/tiff/constants/AdobePhotoshopTagConstants.java

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,34 @@
2424
import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoUndefineds;
2525

2626
/**
27-
* TIFF specification supplement 2
28-
* <BR>
29-
* Adobe Photoshop (R) TIFF Technical Notes
30-
* <BR>
31-
* http://partners.adobe.com/public/developer/en/tiff/TIFFphotoshop.pdf
27+
* TIFF specification supplement 2.
28+
*
29+
* See <a href="https://web.archive.org/web/20180810205806/https://www.adobe.io/content/udp/en/open/standards/TIFF/_jcr_content/contentbody/download_1370394226/file.res/TIFFphotoshop.pdf">Adobe Photoshop (R) TIFF Technical Notes</a>
3230
*/
3331
public final class AdobePhotoshopTagConstants {
3432

33+
/**
34+
* JPEGTables.
35+
*
36+
* <p>JPEGTables provides default JPEG quantization and/or Huffman tables which are used whenever
37+
* a segment data stream does not contain its own tables, as specified below.</p>
38+
*/
3539
public static final TagInfoUndefineds EXIF_TAG_JPEGTABLES = new TagInfoUndefineds(
3640
"JPEGTables", 0x015b, -1,
3741
TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
3842

43+
/**
44+
* ImageSourceData.
45+
*
46+
* <p>Image source data bytes.</p>
47+
*/
3948
public static final TagInfoUndefineds EXIF_TAG_IMAGE_SOURCE_DATA = new TagInfoUndefineds(
4049
"ImageSourceData", 0x935c, -1,
4150
TiffDirectoryType.EXIF_DIRECTORY_IFD0);
4251

52+
/**
53+
* A list with all the Adobe Photoshop tags.
54+
*/
4355
public static final List<TagInfo> ALL_ADOBE_PHOTOSHOP_TAGS =
4456
Collections.unmodifiableList(Arrays.<TagInfo> asList(
4557
EXIF_TAG_JPEGTABLES,

src/main/java/org/apache/commons/imaging/formats/tiff/constants/AliasSketchbookProTagConstants.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,23 @@
2424
import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoAscii;
2525

2626
/**
27-
* Alias Sketchbook Pro multi-layer TIFF
28-
* <BR>
29-
* http://www.awaresystems.be/imaging/tiff/tifftags/docs/alias.html
27+
* Alias Sketchbook Pro multi-layer TIFF.
28+
*
29+
* @see <a href="https://web.archive.org/web/20180905213310/https://awaresystems.be/imaging/tiff/tifftags/docs/alias.html">Alias Sketchbook Pro Multi-Layer TIFF File Format Specification</a>
3030
*/
3131
public final class AliasSketchbookProTagConstants {
3232

33+
/**
34+
* Identifies a file as an Alias Multi Layer TIFF file.
35+
*/
3336
public static final TagInfoAscii EXIF_TAG_ALIAS_LAYER_METADATA = new TagInfoAscii(
3437
"Alias Layer Metadata", 0xc660, -1,
3538
TiffDirectoryType.EXIF_DIRECTORY_UNKNOWN);
3639

37-
public static final List<TagInfo> ALL_ALIAS_SKETCHBOOK_PRO_TAGS =
38-
Collections.unmodifiableList(Arrays.<TagInfo> asList(
39-
EXIF_TAG_ALIAS_LAYER_METADATA));
40+
/**
41+
* A list with all the Alias Sketchbook Pro multi-layer tags.
42+
*/
43+
public static final List<TagInfo> ALL_ALIAS_SKETCHBOOK_PRO_TAGS = Collections.singletonList(EXIF_TAG_ALIAS_LAYER_METADATA);
4044

4145
private AliasSketchbookProTagConstants() {
4246
}

src/main/java/org/apache/commons/imaging/formats/tiff/constants/DcfTagConstants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
import org.apache.commons.imaging.formats.tiff.taginfos.TagInfoShortOrLong;
2727

2828
/**
29-
* Design rule for Camera Filesystem
30-
* <BR>
31-
* http://www.exif.org/dcf.PDF
29+
* Design rule for Camera Filesystem.
30+
*
31+
* @see <a href="https://web.archive.org/web/20220121012334/http://www.exif.org/dcf.PDF">Design rule for Camera File system Version 1.0</a>
3232
*/
3333
public final class DcfTagConstants {
3434

src/main/java/org/apache/commons/imaging/formats/tiff/constants/Rfc2301TagConstants.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@
3333

3434
/**
3535
* RFC 2301: File Format for Internet Fax
36-
* <BR>
37-
* www.ietf.org/rfc/rfc2301.txt
38-
* <BR>
39-
* Also subsumes "The spirit of TIFF class F"
40-
* <BR>
41-
* http://cool.conservation-us.org/bytopic/imaging/std/tiff-f.html
36+
*
37+
* <p>Also subsumes "The spirit of TIFF class F"</p>
38+
*
39+
* @see <a href="www.ietf.org/rfc/rfc2301.txt">RFC-2301 File Format for Internet Fax</a>
40+
* @see <a href="https://web.archive.org/web/20191223140908/http://cool.conservation-us.org/bytopic/imaging/std/tiff-f.html">TIFF-F Revised Specification</a>
4241
*/
4342
public final class Rfc2301TagConstants {
4443

src/main/java/org/apache/commons/imaging/formats/tiff/constants/Tiff4TagConstants.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525

2626
/**
2727
* Tags in TIFF4 but NOT in TIFF6.
28-
* <BR>
29-
* http://cool.conservation-us.org/bytopic/imaging/std/tiff4.html
28+
*
29+
* @see <a href="https://web.archive.org/web/20220516025327/https://cool.culturalheritage.org/bytopic/imaging/std/tiff4.html">Tag Image File Format Rev 4.0</a>
3030
*/
3131
public final class Tiff4TagConstants {
3232

0 commit comments

Comments
 (0)