[skip ci] Fixed some typos in comments. :-)

(cherry picked from commit 00d6acd1bf6724a717b43f465d00a03271c6d7eb)
This commit is contained in:
Harald Kuhr 2022-04-26 19:25:52 +02:00
parent dbdd7ae3f1
commit f625622b10

View File

@ -30,19 +30,20 @@
package com.twelvemonkeys.imageio.plugins.pict; package com.twelvemonkeys.imageio.plugins.pict;
import com.twelvemonkeys.imageio.spi.ImageReaderSpiBase;
import javax.imageio.ImageReader;
import javax.imageio.stream.ImageInputStream;
import java.io.EOFException; import java.io.EOFException;
import java.io.IOException; import java.io.IOException;
import java.util.Locale; import java.util.Locale;
import javax.imageio.ImageReader;
import javax.imageio.stream.ImageInputStream;
import com.twelvemonkeys.imageio.spi.ImageReaderSpiBase;
/** /**
* PICTImageReaderSpi * PICTImageReaderSpi
* *
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a> * @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
* @version $Id: PICTImageReaderSpi.java,v 1.0 28.feb.2006 19:21:05 haku Exp$ * @version $Id: PICTImageReaderSpi.java,v 1.0 28.feb.2006 19:21:05 haraldk Exp$
*/ */
public final class PICTImageReaderSpi extends ImageReaderSpiBase { public final class PICTImageReaderSpi extends ImageReaderSpiBase {
@ -61,7 +62,7 @@ public final class PICTImageReaderSpi extends ImageReaderSpiBase {
ImageInputStream stream = (ImageInputStream) pSource; ImageInputStream stream = (ImageInputStream) pSource;
// PICT format don't have good magic and our method often gives false positives, // PICT format doesn't have good magic and our method often gives false positives,
// We'll check for other known formats (BMP, GIF, JPEG, PNG, PSD, TIFF) first // We'll check for other known formats (BMP, GIF, JPEG, PNG, PSD, TIFF) first
if (isOtherFormat(stream)) { if (isOtherFormat(stream)) {
return false; return false;
@ -76,7 +77,7 @@ public final class PICTImageReaderSpi extends ImageReaderSpiBase {
} }
else { else {
// We need to reset AND set mark again, to make sure the reset call in // We need to reset AND set mark again, to make sure the reset call in
// the finally block will not consume existing marks // the finally-block will not consume existing marks
stream.reset(); stream.reset();
stream.mark(); stream.mark();
@ -149,8 +150,8 @@ public final class PICTImageReaderSpi extends ImageReaderSpiBase {
} }
static void skipNullHeader(final ImageInputStream pStream) throws IOException { static void skipNullHeader(final ImageInputStream pStream) throws IOException {
// NOTE: Only skip if FILE FORMAT, not needed for Mac OS DnD // NOTE: Only skip if FILE FORMAT, not needed for macOS DnD
// Spec says "platform dependent", may not be all nulls.. // Spec says "platform dependent", may not be all nulls...
pStream.skipBytes(PICT.PICT_NULL_HEADER_SIZE); pStream.skipBytes(PICT.PICT_NULL_HEADER_SIZE);
} }