public String getFileTypeId() { return DataFormatType.GINI.toString(); }
@Override public String getFileTypeId() { return DataFormatType.NETCDF.toString(); }
public String getFileTypeId() { return DataFormatType.NETCDF.toString(); }
public String getFileTypeId() { return DataFormatType.NEXRAD2.toString(); }
public String getFileTypeId() { return DataFormatType.NIDS.toString(); }
public String getFileTypeId() { return DataFormatType.NIDS.toString(); }
public String getFileTypeId() { return DataFormatType.NEXRAD2.toString(); }
public String getFileTypeId() { if (header.isEos()) return "HDF4-EOS"; return DataFormatType.HDF4.toString(); }
public String getFileTypeId() { if (header.isEos()) return "HDF4-EOS"; return DataFormatType.HDF4.toString(); }
public static InvAccess copyAccess( InvAccess access, InvDataset parentDataset, List<InvService> availableServices ) { if ( parentDataset == null ) throw new IllegalArgumentException( "Parent dataset may not be null."); String serviceName = access.getService().getName(); InvService service = findServiceByName( serviceName, availableServices); if ( service == null ) { logger.warn( "Access service [" + serviceName + "] not in available service list."); return null; // ToDo Support copying service. //service = copyService( access.getService() ); } DataFormatType dataFormatType = access.getDataFormatType(); InvAccessImpl resultAccess = null; if ( dataFormatType == null ) { resultAccess = new InvAccessImpl( parentDataset, access.getUrlPath(), service ); resultAccess.setSize( access.getDataSize() ); } else resultAccess = new InvAccessImpl( parentDataset, access.getUrlPath(), service.getName(), null, dataFormatType.toString(), access.getDataSize() ); return resultAccess; }
private Element writeAccess( InvAccessImpl access) { Element accessElem = new Element("access", defNS); accessElem.setAttribute("urlPath", access.getUrlPath()); if (access.getServiceName() != null) accessElem.setAttribute("serviceName", access.getServiceName()); if (access.getDataFormatType() != null) accessElem.setAttribute("dataFormat", access.getDataFormatType().toString()); if (access.hasDataSize()) accessElem.addContent( writeDataSize( access.getDataSize())); return accessElem; }
private Element writeAccess(InvAccessImpl access) { Element accessElem = new Element("access", defNS); accessElem.setAttribute("urlPath", access.getUrlPath()); if (access.getServiceName() != null) accessElem.setAttribute("serviceName", access.getServiceName()); if (access.getDataFormatType() != null) accessElem.setAttribute("dataFormat", access.getDataFormatType().toString()); if (access.hasDataSize()) accessElem.addContent(writeDataSize(access.getDataSize())); return accessElem; }
private Element writeAccess(InvAccessImpl access) { Element accessElem = new Element("access", defNS); accessElem.setAttribute("urlPath", access.getUrlPath()); if (access.getServiceName() != null) accessElem.setAttribute("serviceName", access.getServiceName()); if (access.getDataFormatType() != null) accessElem.setAttribute("dataFormat", access.getDataFormatType().toString()); if (access.hasDataSize()) accessElem.addContent(writeDataSize(access.getDataSize())); return accessElem; }