Remote Systems
v6.4.1

com.ibm.etools.systems.files.importexport.jar
Class RemoteJarExportReader

java.lang.Object
  extended bycom.ibm.etools.systems.files.importexport.jar.RemoteJarExportReader
All Implemented Interfaces:
IRemoteJarDescriptionReader

public class RemoteJarExportReader
extends Object
implements IRemoteJarDescriptionReader


Field Summary
protected  InputStream fInputStream
           
 
Constructor Summary
RemoteJarExportReader(InputStream inputStream)
          Reads a Jar Package from the underlying stream.
 
Method Summary
protected  void addWarning(String message, Throwable error)
          Adds a new warning to the list with the passed information.
 void close()
          Closes this stream.
protected  boolean getBooleanAttribute(Element element, String name)
           
protected  boolean getBooleanAttribute(Element element, String name, boolean defaultValue)
           
 IStatus getStatus()
          Returns the status of the reader.
 void read(RemoteJarExportData jarPackage)
          Reads Jar Package description and fills data into the JAR Package data object.
 RemoteJarExportData readXML(RemoteJarExportData jarPackage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fInputStream

protected InputStream fInputStream
Constructor Detail

RemoteJarExportReader

public RemoteJarExportReader(InputStream inputStream)
Reads a Jar Package from the underlying stream. It is the client's responsiblity to close the stream.

Method Detail

read

public void read(RemoteJarExportData jarPackage)
          throws CoreException
Description copied from interface: IRemoteJarDescriptionReader
Reads Jar Package description and fills data into the JAR Package data object.

It is the client's responsibility to close this reader.

Specified by:
read in interface IRemoteJarDescriptionReader
Parameters:
jarPackage - the object into which data is filled
Throws:
CoreException - if read failed, e.g. I/O error during read operation

close

public void close()
           throws CoreException
Closes this stream. It is the clients responsiblity to close the stream.

Specified by:
close in interface IRemoteJarDescriptionReader
Throws:
CoreException

readXML

public RemoteJarExportData readXML(RemoteJarExportData jarPackage)
                            throws IOException,
                                   SAXException
Throws:
IOException
SAXException

getBooleanAttribute

protected boolean getBooleanAttribute(Element element,
                                      String name,
                                      boolean defaultValue)
                               throws IOException
Throws:
IOException

getBooleanAttribute

protected boolean getBooleanAttribute(Element element,
                                      String name)
                               throws IOException
Throws:
IOException

getStatus

public IStatus getStatus()
Returns the status of the reader. If there were any errors, the result is a status object containing individual status objects for each error. If there were no errors, the result is a status object with error code OK.

Specified by:
getStatus in interface IRemoteJarDescriptionReader
Returns:
the status of this operation

addWarning

protected void addWarning(String message,
                          Throwable error)
Adds a new warning to the list with the passed information. Normally the export operation continues after a warning.

Parameters:
message - the message

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.