java.lang.Object
edu.internet2.middleware.grouperClientExt.org.apache.commons.httpclient.methods.multipart.ByteArrayPartSource
All Implemented Interfaces:
PartSource

public class ByteArrayPartSource extends Object implements PartSource
A PartSource that reads from a byte array. This class should be used when the data to post is already loaded into memory.
Since:
2.0
  • Constructor Details

    • ByteArrayPartSource

      public ByteArrayPartSource(String fileName, byte[] bytes)
      Constructor for ByteArrayPartSource.
      Parameters:
      fileName - the name of the file these bytes represent
      bytes - the content of this part
  • Method Details