Package uk.ac.starlink.datanode.nodes
Class FITSFileDataNode
java.lang.Object
uk.ac.starlink.datanode.nodes.DefaultDataNode
uk.ac.starlink.datanode.nodes.FITSDataNode
uk.ac.starlink.datanode.nodes.FITSFileDataNode
- All Implemented Interfaces:
DataNode
An implementation of the
DataNode interface for
representing FITS objects stored on disk.- Version:
- $Id$
- Author:
- Mark Taylor (Starlink)
-
Nested Class Summary
Nested classes/interfaces inherited from class uk.ac.starlink.datanode.nodes.FITSDataNode
FITSDataNode.ArrayDataMaker -
Constructor Summary
ConstructorsConstructorDescriptionFITSFileDataNode(File file) FITSFileDataNode(uk.ac.starlink.util.FileDataSource fdatsrc) -
Method Summary
Modifier and TypeMethodDescriptionprotected FITSDataNode.ArrayDataMakergetArrayData(long start, long size) Returns an ArrayDataMaker encapsulating the same input stream as the on one which this FITSDataNode is based, but starting at a given offsetstartinto the stream andsizebytes long.getName()Gets the name of this object.static uk.ac.starlink.util.FileDataSourcemakeFileDataSource(File file) Methods inherited from class uk.ac.starlink.datanode.nodes.FITSDataNode
allowsChildren, getChildIterator, getDataInput, getDescription, getNodeTLA, getNodeType, getPathSeparator, isMagicMethods inherited from class uk.ac.starlink.datanode.nodes.DefaultDataNode
beep, configureDetail, getChildMaker, getCreator, getDataObject, getIcon, getLabel, getParentObject, getPathElement, hasDataObject, makeChild, makeErrorChild, registerDataObject, setChildMaker, setCreator, setDescription, setIconID, setLabel, setName, setParentObject, toString
-
Constructor Details
-
FITSFileDataNode
- Throws:
NoSuchDataException
-
FITSFileDataNode
- Throws:
NoSuchDataException
-
-
Method Details
-
getName
Description copied from interface:DataNodeGets the name of this object. This is an intrinsic property of the object.- Specified by:
getNamein interfaceDataNode- Overrides:
getNamein classFITSDataNode- Returns:
- the name of the object
-
getArrayData
Description copied from class:FITSDataNodeReturns an ArrayDataMaker encapsulating the same input stream as the on one which this FITSDataNode is based, but starting at a given offsetstartinto the stream andsizebytes long.- Specified by:
getArrayDatain classFITSDataNode- Parameters:
start- the offset into this FITSDataNode's stream at which the returned source's streams should startsize- the number of bytes contained by the returned source's stream
-
makeFileDataSource
public static uk.ac.starlink.util.FileDataSource makeFileDataSource(File file) throws NoSuchDataException - Throws:
NoSuchDataException
-