|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdtservice.DataTranslationImpl
public class DataTranslationImpl
Constructor Summary | |
---|---|
DataTranslationImpl()
|
Method Summary | |
---|---|
java.lang.String |
isDeployed()
Perform a check to see if the Data Translation Web Service is deployed. |
java.lang.String |
translateFile(javax.activation.DataHandler dh,
java.lang.String filename,
java.lang.String translationMode,
java.lang.String emailTo)
Translates a single file (local or remote) using the default mapping file (if applicable). |
java.lang.String[] |
translateFiles(javax.activation.DataHandler[] dh,
java.lang.String[] filenames,
java.lang.String[] translationModes,
java.lang.String emailTo)
Translates one or more local and/or remote files using the default mapping files (if applicable). |
java.lang.String[] |
translateFileswithMappings(javax.activation.DataHandler[] dh,
java.lang.String[] filenames,
java.lang.String[] translationModes,
javax.activation.DataHandler[] mappingFileDHs,
java.lang.String[] mappingFilenames,
java.lang.String[] mappingFileModes,
java.lang.String emailTo)
Translates one or more local and/or remote files using the user-specified mapping files. |
java.lang.String |
translateFilewithMapping(javax.activation.DataHandler dh,
java.lang.String filename,
java.lang.String translationMode,
javax.activation.DataHandler mappingFileDH,
java.lang.String mappingFilename,
java.lang.String mappingFileMode,
java.lang.String emailTo)
Translates a single file (local or remote) using the user-specified mapping file. |
java.lang.String |
translateRemoteFile(java.lang.String filename,
java.lang.String translationMode,
java.lang.String emailTo)
Translates a file that resides on a remote machine using the default mapping file (if applicable). |
java.lang.String[] |
translateRemoteFiles(java.lang.String[] filenames,
java.lang.String[] translationModes,
java.lang.String emailTo)
Translates one or more remote files using the default mapping file (if applicable). |
java.lang.String[] |
translateRemoteFileswithMappings(java.lang.String[] filenames,
java.lang.String[] translationModes,
java.lang.String[] mappingFilenames,
java.lang.String[] mappingFileModes,
java.lang.String emailTo)
Translates one or more remote files using the user-specified mapping files that reside on remote machine(s). |
java.lang.String |
translateRemoteFilewithMapping(java.lang.String filename,
java.lang.String translationMode,
java.lang.String mappingFilename,
java.lang.String emailTo)
Translates a remote file using the user-specified mapping file that resides on a remote machine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataTranslationImpl()
Method Detail |
---|
public java.lang.String translateRemoteFile(java.lang.String filename, java.lang.String translationMode, java.lang.String emailTo)
DataTranslationIF
translateRemoteFile
in interface DataTranslationIF
filename
- the name of the remote file to be translated (e.g
ftp://nssdc.gsfc.nasa.gov/mydata.cdf)translationMode
- the data translation mode that should be one of
the following:
where CDFML is a CDF Markup Language that is a XML representation of CDF. The FITS-ARRAY translation mode dumps the contents of a FITS image to a file.
emailTo
- the email address to be notified upon completion of the
data translation. The eamil will contain the name of
the translated file(s) along with URLs. This parameter is
optional. If you don't want to be notified, set the value
of this parameter to "null" or an empty string "".
public java.lang.String translateRemoteFilewithMapping(java.lang.String filename, java.lang.String translationMode, java.lang.String mappingFilename, java.lang.String emailTo)
DataTranslationIF
translateRemoteFilewithMapping
in interface DataTranslationIF
filename
- the name of the remote file to be translated (e.g
ftp://nssdc.gsfc.nasa.gov/mydata.cdf)translationMode
- the data translation mode that should be one of
the following:
where CDFML is a CDF Markup Language that is a XML representation of CDF. The FITS-ARRAY translation mode dumps the contents of a FITS image to a file.
mappingFilename
- the name of the remote mapping file nameemailTo
- the email address to be notified upon completion of the
data translation. The eamil will contain the name of
the translated file(s) along with URLs. This parameter is
optional. If you don't want to be notified, set the value
of this parameter to "null" or an empty string "".
public java.lang.String translateFile(javax.activation.DataHandler dh, java.lang.String filename, java.lang.String translationMode, java.lang.String emailTo)
DataTranslationIF
translateFile
in interface DataTranslationIF
dh
- the DataHandler object that contains the input file
filename
- the name of the file to be translated translationMode
- the data translation mode that should be one of
the following:
where CDFML is a CDF Markup Language that is a XML representation of CDF. The FITS-ARRAY translation mode dumps the contents of a FITS image to a file.
emailTo
- the email address to be notified upon completion of the
data translation. The eamil will contain the name of
the translated file(s) along with URLs. This parameter is
optional. If you don't want to be notified, set the value
of this parameter to "null" or an empty string "".
public java.lang.String translateFilewithMapping(javax.activation.DataHandler dh, java.lang.String filename, java.lang.String translationMode, javax.activation.DataHandler mappingFileDH, java.lang.String mappingFilename, java.lang.String mappingFileMode, java.lang.String emailTo)
DataTranslationIF
translateFilewithMapping
in interface DataTranslationIF
dh
- the DataHandler object that contains the input file
filename
- the name of the file to be translated translationMode
- the data translation mode that should be one of
the following:
where CDFML is a CDF Markup Language that is a XML representation of CDF. The FITS-ARRAY translation mode dumps the contents of a FITS image to a file.
mappingFileDH
- the DataHandler object that contains the user
specified mapping file mappingFilename
- the mapping file name mappingFileMode
- the mapping file mode to be applied to the
input file (fileName) that should be one of the
following:
If the value of this parameter is not the same as translationMode, the user-specified mapping file is ignored and the default mapping is used.
emailTo
- the email address to be notified upon completion of the
data translation. The eamil will contain the name of
the translated file(s) along with URLs. This parameter is
optional. If you don't want to be notified, set the value
of this parameter to "null" or an empty string "".
public java.lang.String[] translateRemoteFiles(java.lang.String[] filenames, java.lang.String[] translationModes, java.lang.String emailTo)
DataTranslationIF
translateRemoteFiles
in interface DataTranslationIF
filenames
- a string array that contains the full pathname of
the input files
(e.g. ftp://nssdc.gsfc.nasa.gov/mydata.cdf) to be
translatedtranslationModes
- an array of the data translation mode. The
following are the valid translation modes:
where CDFML is a CDF Markup Language that is a XML representation of CDF. The FITS-ARRAY translation mode dumps the contents of a FITS image to a file.
emailTo
- the email address to be notified upon completion of the
data translation. The eamil will contain the name of
the translated file(s) along with URLs. This parameter is
optional. If you don't want to be notified, set the value
of this parameter to "null" or an empty string "".
public java.lang.String[] translateRemoteFileswithMappings(java.lang.String[] filenames, java.lang.String[] translationModes, java.lang.String[] mappingFilenames, java.lang.String[] mappingFileModes, java.lang.String emailTo)
DataTranslationIF
translateRemoteFileswithMappings
in interface DataTranslationIF
filenames
- a string array that contains the full pathname of
the input files
(e.g. ftp://nssdc.gsfc.nasa.gov/mydata.cdf) to be
translatedtranslationModes
- an array of the data translation mode. The
following are the valid translation modes:
where CDFML is a CDF Markup Language that is a XML representation of CDF. The FITS-ARRAY translation mode dumps the contents of a FITS image to a file.
mappingFilenames
- the name of the remote mapping filesmappingFileModes
- an array of the mapping file modes to be applied
to 'fileNames'. The following are the valid
mapping file modes:
The number of mapping file modes should match the number of mapping files provided in mappingFileNames, but it doesn't have to match the number of input files (specified in fileNames) as one or more files can share the same mapping file.
emailTo
- the email address to be notified upon completion of the
data translation. The eamil will contain the name of
the translated file(s) along with URLs. This parameter is
optional. If you don't want to be notified, set the value
of this parameter to "null" or an empty string "".
public java.lang.String[] translateFiles(javax.activation.DataHandler[] dh, java.lang.String[] filenames, java.lang.String[] translationModes, java.lang.String emailTo)
DataTranslationIF
translateFiles
in interface DataTranslationIF
dh
- an array of the DataHandler object that contains the
input files
filenames
- a string array that contains the name of the input
files
translationModes
- an array of the data translation mode. The
value of each element should be one of the
following:
where CDFML is a CDF Markup Language that is a XML representation of CDF. The FITS-ARRAY translation mode dumps the contents of a FITS image to a file.
emailTo
- the email address to be notified upon completion of the
data translation. The eamil will contain the name of
the translated file(s) along with URLs. This parameter is
optional. If you don't want to be notified, set the value
of this parameter to "null" or an empty string "".
public java.lang.String[] translateFileswithMappings(javax.activation.DataHandler[] dh, java.lang.String[] filenames, java.lang.String[] translationModes, javax.activation.DataHandler[] mappingFileDHs, java.lang.String[] mappingFilenames, java.lang.String[] mappingFileModes, java.lang.String emailTo)
DataTranslationIF
translateFileswithMappings
in interface DataTranslationIF
dh
- an array of the DataHandler object that contains the
input files
filenames
- a string array that contains the name of the
input filestranslationModes
- an array of the data translation mode. The
value of each element should be one of the
following:
where CDFML is a CDF Markup Language that is a XML representation of CDF. The FITS-ARRAY translation mode dumps the contents of a FITS image to a file.
mappingFileDHs
- an array of the DataHandler object that contains
the user specified mapping files mappingFilenames
- an array of the the mapping file namesmappingFileModes
- an array of the mapping file modes to be applied
to 'fileNames'. The mapping file mode should be
one of the following:
The number of mapping file modes should match the number of mapping files provided in mappingFileNames, but it doesn't have to match the number of input files (specified in fileNames) as one or more files can share the same mapping file.
emailTo
- the email address to be notified upon completion of the
data translation. The eamil will contain the name of
the translated file(s) along with URLs. This parameter is
optional. If you don't want to be notified, set the value
of this parameter to "null" or an empty string "".
public java.lang.String isDeployed()
DataTranslationIF
isDeployed
in interface DataTranslationIF
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |