com.sap.netweaver.kmc.expimp

Class ArchivePart

java.lang.Object
  extended by com.sap.netweaver.kmc.expimp.ArchivePart

public class ArchivePart
extends Object

Represents parts of a generated archive (KM content module) that contains the exported KM content.
Due to size restrictions, this archive may be split up into several parts. These parts are numbered starting at zero.

Copyright 2007 SAP AG


Constructor Summary
ArchivePart(String name, int partNo, File file)
          Constructs a new archive part.
 
Method Summary
 InputStream getContent()
          Returns the content of this archive part.
 File getFile()
          Returns the file containing this archive part.
 String getName()
          Returns the name of this archive part.
 int getPartNumber()
          Returns the number of this archive part.
 long getSize()
          Returns the size of this archive part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArchivePart

public ArchivePart(String name,
                   int partNo,
                   File file)
Constructs a new archive part.

Parameters:
name - the name of the part
partNo - the number of the part (starting at zero)
file - the file containing the part's content
Method Detail

getName

public String getName()
Returns the name of this archive part.

Returns:
this part's name

getPartNumber

public int getPartNumber()
Returns the number of this archive part.

Returns:
this part's number (starting at zero)

getSize

public long getSize()
Returns the size of this archive part.

Returns:
this part's size

getFile

public File getFile()
Returns the file containing this archive part.

Returns:
this part as file

getContent

public InputStream getContent()
                       throws IOException
Returns the content of this archive part.

Returns:
this part's content as input stream
Throws:
IOException - on error
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice