Esri Geoportal Server
1.2.9

com.esri.gpt.agp.client
Class AgpDPart

java.lang.Object
  extended by com.esri.gpt.agp.multipart2.MPart
      extended by com.esri.gpt.agp.client.AgpDPart

public class AgpDPart
extends MPart

A part within a multi-part HTTP request that streams source data (e.g. item data, item thumbnail, ...) to a destination.


Constructor Summary
AgpDPart(AgpConnection sourceConnection, AgpItem sourceItem, String sourceUrl, String name, String sourceFileName, long sourceLength)
          Constructor.
 
Method Summary
protected  long dataLength()
          The length of the part data in bytes (-1 if unknown).
 void send(OutputStream out)
          Write the part to the stream.
 
Methods inherited from class com.esri.gpt.agp.multipart2.MPart
getAsciiBytes, getBoundary, getCharset, getContentType, getData, getFileName, getName, getTransferEncoding, isRepeatable, partLength, sendContentTypeHeader, sendData, sendDispositionHeader, sendEnd, sendEndOfHeader, sendStart, sendTransferEncodingHeader, setBoundary, setCharset, setContentType, setData, setFileName, setName, setTransferEncoding, streamData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgpDPart

public AgpDPart(AgpConnection sourceConnection,
                AgpItem sourceItem,
                String sourceUrl,
                String name,
                String sourceFileName,
                long sourceLength)
Constructor.

Parameters:
sourceConnection - the connection to the portal containing the source item
sourceItem - the source item
sourceUrl - the URL for the source item
name - the part/property name
sourceFileName - the part/property file name
sourceLength - the length of the part data
Method Detail

dataLength

protected long dataLength()
                   throws IOException
The length of the part data in bytes (-1 if unknown).

Overrides:
dataLength in class MPart
Returns:
the data length
Throws:
IOException - if an exception occurs

send

public void send(OutputStream out)
          throws IOException
Write the part to the stream.

Overrides:
send in class MPart
Parameters:
out - the output stream
Throws:
IOException - if an exception occurs

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.