Remote Systems
v6.4.1

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

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

public class RemoteJarExportWriter
extends Object
implements IRemoteJarDescriptionWriter


Field Summary
protected  OutputStream fOutputStream
           
 
Constructor Summary
RemoteJarExportWriter(OutputStream outputStream)
          Create a JarPackageWriter on the given output stream.
 
Method Summary
 void close()
          Closes this stream.
 IStatus getStatus()
          Returns the status of this reader.
 void write(RemoteJarExportData jarPackage)
          Writes the JAR package data to the description file to to the underlying stream.
 void writeString(RemoteJarExportData jarPackage)
          Writes a String representation of the JAR specification to to the underlying stream.
 void writeXML(RemoteJarExportData jarPackage)
          Writes a XML representation of the JAR specification to to the underlying stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fOutputStream

protected OutputStream fOutputStream
Constructor Detail

RemoteJarExportWriter

public RemoteJarExportWriter(OutputStream outputStream)
Create a JarPackageWriter on the given output stream. It is the clients responsibility to close the output stream.

Method Detail

write

public void write(RemoteJarExportData jarPackage)
           throws CoreException
Description copied from interface: IRemoteJarDescriptionWriter
Writes the JAR package data to the description file to to the underlying stream.

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

Specified by:
write in interface IRemoteJarDescriptionWriter
Throws:
CoreException - if writing fails, e.g. I/O error during write operation

writeXML

public void writeXML(RemoteJarExportData jarPackage)
              throws IOException
Writes a XML representation of the JAR specification to to the underlying stream.

Throws:
IOException - if writing to the underlying stream fails

writeString

public void writeString(RemoteJarExportData jarPackage)
                 throws IOException
Writes a String representation of the JAR specification to to the underlying stream.

Throws:
IOException - Writing to the underlying stream.

close

public void close()
           throws CoreException
Closes this stream. It is the client's responsibility to close the stream.

Specified by:
close in interface IRemoteJarDescriptionWriter
Throws:
CoreException

getStatus

public IStatus getStatus()
Description copied from interface: IRemoteJarDescriptionWriter
Returns the status of this 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 IRemoteJarDescriptionWriter
Returns:
the status of this operation

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.