public class ConvertArrayImpl extends WrapperArrayImpl
Converter,
TypeConverter| Constructor and Description |
|---|
ConvertArrayImpl(NDArray nda,
Converter conv)
Constructs a new ArrayImpl from an underlying NDArray and a supplied
converter object.
|
| Modifier and Type | Method and Description |
|---|---|
AccessImpl |
getAccess()
Returns an object which can access the pixels of this ArrayImpl.
|
java.lang.Number |
getBadValue()
The magic bad value for data.
|
Type |
getType()
Returns the primitive type of the data held by this object.
|
canMap, close, getMapped, getShape, getWrapped, isRandom, isReadable, isWritable, multipleAccess, open, toStringpublic ConvertArrayImpl(NDArray nda, Converter conv)
nda - the base NDArray which supplies the pixels to be
convertedconv - a Converter object which operates on the pixels of nda.
Its base type (type1) must match the type of nda.java.lang.IllegalArgumentException - if conv.getType1() is not equal
to nda.getType().public Type getType()
ArrayImplgetType in interface ArrayImplgetType in class WrapperArrayImplpublic java.lang.Number getBadValue()
ArrayImplgetBadValue in interface ArrayImplgetBadValue in class WrapperArrayImplpublic AccessImpl getAccess() throws java.io.IOException
ArrayImplThis method will only be called after the sole call to open and before the sole call to close.
This method will only be called more than once if the multipleAccess method returns true.
It is the responsibility of the caller to close the returned AccessImpl when it is no longer required; this enables resources it may hold to be released.
getAccess in interface ArrayImplgetAccess in class WrapperArrayImpljava.io.IOException - if there is an IO errorCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.