Skip to content

BandSource Java 1.5

dj-snyder edited this page Jun 3, 2015 · 1 revision
<SCRIPT type="text/javascript"> function windowTitle() { parent.document.title="BandSource (NITRO 1.5-rc6 API)"; } </SCRIPT>

Package   Class  Use  Tree  Deprecated  Index  Help 
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    <SCRIPT type="text/javascript"> </SCRIPT> All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

nitf
Class BandSource

java.lang.Object
  extended by nitf.NITFObject
      extended by nitf.DestructibleObject
          extended by nitf.BandSource
Direct Known Subclasses:
FileSource, MemorySource

public abstract class BandSource
extends DestructibleObject

Represents a source of an image band


Field Summary
protected static java.util.Map bandSourceMap
          This maps addresses to BandSource objects.
 
Fields inherited from class nitf.NITFObject
address, NITF_LIBRARY_NAME
 

Constructor Summary
protected BandSource()
          Default Constructor
 

Method Summary
protected  void destructMemory()
          Destructs this object
protected static BandSource getByAddress(long address)
          This returns the BandSource object represented by the given underlying memory address.
 boolean isAttached()
          Returns true if this BandSource is attached to an ImageSource
abstract  void read(byte[] buf, int size)
          Reads size bytes from the BandSource, and stores it in the given byte buf
protected static void register(BandSource bandSource)
          This sets the class type for the given BandSource instance
protected  void setAttached(boolean attached)
          Sets whether or not this BandSource is attached to an ImageSource This information is used when cleaning up memory
 
Methods inherited from class nitf.DestructibleObject
destruct, finalize
 
Methods inherited from class nitf.NITFObject
isValid
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bandSourceMap

protected static java.util.Map bandSourceMap
This maps addresses to BandSource objects. Since this is a special case, where we do underlying callback code, we need to know if this is a user-extended BandSource, or one of the provided ones.

Constructor Detail

BandSource

protected BandSource()
Default Constructor

Method Detail

read

public abstract void read(byte[] buf,
                          int size)
                   throws NITFException
Reads size bytes from the BandSource, and stores it in the given byte buf

Parameters:
buf - The data buffer
size - The number of bytes to read
Throws:
NITFException

destructMemory

protected void destructMemory()
Destructs this object

Specified by:
destructMemory in class DestructibleObject

setAttached

protected final void setAttached(boolean attached)
Sets whether or not this BandSource is attached to an ImageSource This information is used when cleaning up memory

Parameters:
attached -

isAttached

public final boolean isAttached()
Returns true if this BandSource is attached to an ImageSource

Returns:
true if this BandSource is attached to an ImageSource

getByAddress

protected static final BandSource getByAddress(long address)
This returns the BandSource object represented by the given underlying memory address. This helps the JNI code, since this is a special class where we do different things depending on the extended class type.

Parameters:
address -
Returns:

register

protected static final void register(BandSource bandSource)
This sets the class type for the given BandSource instance

Parameters:
bandSource -

Package   Class  Use  Tree  Deprecated  Index  Help 
Created: 03/13/2008 11:12:03 AM
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    <SCRIPT type="text/javascript"> </SCRIPT> All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

            <i>Copyright &#169; 2004-2008 General Dynamics All Rights Reserved.</i>
            <div style="float:left;"><a href="http://sourceforge.net/" target="_blank"><img style="width: 151px; height: 38px;" src="http://web.sourceforge.com/images/footer/source.gif" alt="SourceForge.net" border="0" height="38" width="151"></a></div>
            <script type="text/javascript">
                var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
                document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

                </script>
                <script type="text/javascript">
                var pageTracker = _gat._getTracker("UA-3779761-1");
                pageTracker._initData();
                pageTracker._trackPageview();
            </script>
Clone this wiki locally