ucar.nc2.stream
Class NcStreamRemote

java.lang.Object
  extended by ucar.nc2.NetcdfFile
      extended by ucar.nc2.stream.NcStreamRemote
All Implemented Interfaces:
FileCacheable

public class NcStreamRemote
extends NetcdfFile

A remote NetcdfFile, using ncstream to communicate.

Since:
Feb 7, 2009
Author:
caron

Field Summary
static java.lang.String SCHEME
           
 
Fields inherited from class ucar.nc2.NetcdfFile
cache, cacheName, debugCompress, debugSPI, dimensions, gattributes, id, IOSP_MESSAGE_ADD_RECORD_STRUCTURE, IOSP_MESSAGE_REMOVE_RECORD_STRUCTURE, location, reserved, rootGroup, spi, title, unlocked, variables
 
Constructor Summary
NcStreamRemote(java.lang.String _remoteURI, CancelTask cancel)
           
 
Method Summary
static java.lang.String canonicalURL(java.lang.String urlName)
          Create the canonical form of the URL.
 java.lang.String getFileTypeDescription()
          Get a human-readable description for this file type.
 java.lang.String getFileTypeId()
          Get the file type id for the underlying data source.
protected  Array readData(Variable v, Section section)
           
 org.apache.commons.httpclient.HttpMethod sendQuery(java.lang.String query)
           
static void setHttpClient(org.apache.commons.httpclient.HttpClient client)
          Set the HttpClient object - so that a single, shared instance is used within the application.
 
Methods inherited from class ucar.nc2.NetcdfFile
addAttribute, addDimension, addGroup, addStringVariable, addVariable, addVariable, addVariableAttribute, canOpen, close, empty, escapeName, findAttValueIgnoreCase, findDimension, findGlobalAttribute, findGlobalAttributeIgnoreCase, findGroup, findTopVariable, findVariable, finish, getCacheName, getDetailInfo, getDimensions, getFileTypeVersion, getGlobalAttributes, getId, getIosp, getLocation, getRootGroup, getTitle, getUnlimitedDimension, getVariables, hasUnlimitedDimension, isUnlocked, main, makeFullName, makeFullNameEscaped, makeFullNameWithString, makeRecordStructure, makeRootGroup, open, open, open, open, open, openInMemory, openInMemory, openInMemory, read, readArrays, readAttributeDouble, readAttributeInteger, readSection, readToByteChannel, registerIOProvider, registerIOProvider, removeDimension, removeRecordStructure, removeVariable, sendIospMessage, setCacheName, setDebugFlags, setFileCache, setId, setImmutable, setLocation, setProperty, setTitle, sync, syncExtend, toString, toStringDebug, toStringEnd, toStringStart, unescapeName, writeCDL, writeCDL, writeNcML, writeNcML
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SCHEME

public static final java.lang.String SCHEME
See Also:
Constant Field Values
Constructor Detail

NcStreamRemote

public NcStreamRemote(java.lang.String _remoteURI,
                      CancelTask cancel)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

canonicalURL

public static java.lang.String canonicalURL(java.lang.String urlName)
Create the canonical form of the URL. If the urlName starts with "http:", change it to start with "dods:", otherwise leave it alone.

Parameters:
urlName - the url string
Returns:
canonical form

setHttpClient

public static void setHttpClient(org.apache.commons.httpclient.HttpClient client)
Set the HttpClient object - so that a single, shared instance is used within the application.

Parameters:
client - the HttpClient object

readData

protected Array readData(Variable v,
                         Section section)
                  throws java.io.IOException,
                         InvalidRangeException
Overrides:
readData in class NetcdfFile
Throws:
java.io.IOException
InvalidRangeException

sendQuery

public org.apache.commons.httpclient.HttpMethod sendQuery(java.lang.String query)
                                                   throws java.io.IOException
Throws:
java.io.IOException

getFileTypeId

public java.lang.String getFileTypeId()
Description copied from class: NetcdfFile
Get the file type id for the underlying data source.

Overrides:
getFileTypeId in class NetcdfFile
Returns:
registered id of the file type
See Also:
"http://www.unidata.ucar.edu/software/netcdf-java/formats/FileTypes.html"

getFileTypeDescription

public java.lang.String getFileTypeDescription()
Description copied from class: NetcdfFile
Get a human-readable description for this file type.

Overrides:
getFileTypeDescription in class NetcdfFile
Returns:
description of the file type
See Also:
"http://www.unidata.ucar.edu/software/netcdf-java/formats/FileTypes.html"