fr.cnes.sitools.resources.order.representations
Class TarOutputRepresentation

java.lang.Object
  extended by org.restlet.representation.Variant
      extended by org.restlet.representation.RepresentationInfo
          extended by org.restlet.representation.Representation
              extended by org.restlet.representation.StreamRepresentation
                  extended by org.restlet.representation.OutputRepresentation
                      extended by fr.cnes.sitools.resources.order.representations.TarOutputRepresentation

public class TarOutputRepresentation
extends org.restlet.representation.OutputRepresentation

Representation used to create a tar or a tar.gz Archive from a List of Reference pointing to some files

Author:
m.gond

Field Summary
 
Fields inherited from class org.restlet.representation.Representation
UNKNOWN_SIZE
 
Constructor Summary
TarOutputRepresentation(java.util.List<org.restlet.data.Reference> referencesSource, org.restlet.data.ClientInfo clientInfo, org.restlet.Context context, java.lang.String fileName, boolean gzip)
          Create a new TarOutputRepresentation
TarOutputRepresentation(ListReferencesAPI refListAPI, org.restlet.data.ClientInfo clientInfo, org.restlet.Context context, java.lang.String fileName, boolean gzip)
          TarOutputRepresentation
 
Method Summary
 void write(java.io.OutputStream outputStream)
           
 
Methods inherited from class org.restlet.representation.OutputRepresentation
getStream
 
Methods inherited from class org.restlet.representation.StreamRepresentation
getChannel, getReader, write, write
 
Methods inherited from class org.restlet.representation.Representation
checkDigest, checkDigest, computeDigest, createEmpty, exhaust, getAvailableSize, getDigest, getDisposition, getDownloadName, getExpirationDate, getRange, getSize, getText, isAvailable, isDownloadable, isTransient, release, setAvailable, setDigest, setDisposition, setDownloadable, setDownloadName, setExpirationDate, setRange, setSize, setTransient
 
Methods inherited from class org.restlet.representation.RepresentationInfo
getModificationDate, getTag, setModificationDate, setTag
 
Methods inherited from class org.restlet.representation.Variant
createClientInfo, equals, getCharacterSet, getEncodings, getIdentifier, getLanguages, getLocationRef, getMediaType, includes, isCompatible, setCharacterSet, setEncodings, setIdentifier, setIdentifier, setLanguages, setLocationRef, setLocationRef, setMediaType, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TarOutputRepresentation

public TarOutputRepresentation(java.util.List<org.restlet.data.Reference> referencesSource,
                               org.restlet.data.ClientInfo clientInfo,
                               org.restlet.Context context,
                               java.lang.String fileName,
                               boolean gzip)
Create a new TarOutputRepresentation

Parameters:
referencesSource - the list of Reference pointing the file to add to the zip archive
clientInfo - the clientInfo of the current user
context - the Context * @param fileName the complete fileName with extension
gzip - Whether or not to use gzip compression on the tar

TarOutputRepresentation

public TarOutputRepresentation(ListReferencesAPI refListAPI,
                               org.restlet.data.ClientInfo clientInfo,
                               org.restlet.Context context,
                               java.lang.String fileName,
                               boolean gzip)
TarOutputRepresentation

Parameters:
refListAPI -
clientInfo -
context -
fileName -
gzip -
Method Detail

write

public void write(java.io.OutputStream outputStream)
           throws java.io.IOException
Specified by:
write in class org.restlet.representation.Representation
Throws:
java.io.IOException


Copyright © 2010-2013 CNES. All Rights Reserved.