mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-04 12:05:29 -04:00
#423: Minor clean-up
This commit is contained in:
parent
ce7fb1cb94
commit
b32a38bf02
@ -43,11 +43,12 @@ import java.util.Locale;
|
|||||||
* @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 haku Exp$
|
||||||
*/
|
*/
|
||||||
public class PICTImageReaderSpi extends ImageReaderSpiBase {
|
public final class PICTImageReaderSpi extends ImageReaderSpiBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a {@code PICTImageReaderSpi}.
|
* Creates a {@code PICTImageReaderSpi}.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("WeakerAccess")
|
||||||
public PICTImageReaderSpi() {
|
public PICTImageReaderSpi() {
|
||||||
super(new PICTProviderInfo());
|
super(new PICTProviderInfo());
|
||||||
}
|
}
|
||||||
@ -83,11 +84,12 @@ public 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 Mac OS DnD
|
||||||
// Spec says "platofrm 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isPICT(final ImageInputStream pStream) throws IOException {
|
private boolean isPICT(final ImageInputStream pStream) throws IOException {
|
||||||
|
// TODO: Need to validate better...
|
||||||
// Size may be 0, so we can't use this for validation...
|
// Size may be 0, so we can't use this for validation...
|
||||||
pStream.readUnsignedShort();
|
pStream.readUnsignedShort();
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ import java.io.*;
|
|||||||
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
|
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
|
||||||
* @version $Id: PICTWriter.java,v 1.0 05.apr.2006 15:20:48 haku Exp$
|
* @version $Id: PICTWriter.java,v 1.0 05.apr.2006 15:20:48 haku Exp$
|
||||||
*/
|
*/
|
||||||
public class PICTImageWriter extends ImageWriterBase {
|
public final class PICTImageWriter extends ImageWriterBase {
|
||||||
|
|
||||||
// TODO: Inline these?
|
// TODO: Inline these?
|
||||||
private int rowBytes;
|
private int rowBytes;
|
||||||
|
@ -42,7 +42,7 @@ import java.util.Locale;
|
|||||||
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
|
* @author <a href="mailto:harald.kuhr@gmail.com">Harald Kuhr</a>
|
||||||
* @version $Id: PICTImageWriterSpi.java,v 1.0 02.mar.2006 19:21:05 haku Exp$
|
* @version $Id: PICTImageWriterSpi.java,v 1.0 02.mar.2006 19:21:05 haku Exp$
|
||||||
*/
|
*/
|
||||||
public class PICTImageWriterSpi extends ImageWriterSpiBase {
|
public final class PICTImageWriterSpi extends ImageWriterSpiBase {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a {@code PICTImageWriterSpi}.
|
* Creates a {@code PICTImageWriterSpi}.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user