Package | Description |
---|---|
org.foxlabs.validation.constraint |
Modifier and Type | Class and Description |
---|---|
protected static class |
ImageSizeConstraint.IOContext
Context used by
ImageSizeConstraint.RawCodec . |
Modifier and Type | Method and Description |
---|---|
protected ImageSizeConstraint.Context |
ImageSizeConstraint.RawCodec.decodeImage(byte[] value)
Decodes the specified
byte[] array representing an
image into java.awt.Image and returns context that
contains image and its format name. |
protected ImageSizeConstraint.Context |
ImageSizeConstraint.AwtCodec.decodeImage(Image value)
Returns context that contains the specified image.
|
protected abstract ImageSizeConstraint.Context |
ImageSizeConstraint.decodeImage(V value)
Decodes the specified raw image representation into
java.awt.Image and returns context that contains image and
its attributes. |
Modifier and Type | Method and Description |
---|---|
protected abstract V |
ImageSizeConstraint.encodeImage(ImageSizeConstraint.Context context)
Encodes
java.awt.Image from the specified context and
returns raw image representation. |
protected Image |
ImageSizeConstraint.AwtCodec.encodeImage(ImageSizeConstraint.Context context)
Returns
java.awt.Image from the specified context. |
protected byte[] |
ImageSizeConstraint.RawCodec.encodeImage(ImageSizeConstraint.Context context)
Encodes
java.awt.Image from the specified context and
returns byte[] array representing that image. |
Copyright © 2011–2020 FoxLabs. All rights reserved.