/** * Creates a new Part from an InputStream. * @param contentType content type for the Part * @param name name of the Part * @param props Properties to be associated with the Part * @param is InputStream to be used to populate the Part's data * @return the new Part */ public static Part newInstance( final String contentType, final String name, final Properties props, final InputStream is) { return new Streamed(contentType, name, props, is); }
@Override public InputStream getInputStream() { InputStream extrIS = getExtractedInputStream(); if (extrIS == null) { return is; } else { return extrIS; } }
/** * Creates a new Part from an InputStream. * @param contentType content type for the Part * @param name name of the Part * @param props Properties to be associated with the Part * @param is InputStream to be used to populate the Part's data * @return the new Part */ public static Part newInstance( final String contentType, final String name, final Properties props, final InputStream is) { return new Streamed(contentType, name, props, is); }
/** * Creates a new Part from an InputStream. * @param contentType content type for the Part * @param name name of the Part * @param props Properties to be associated with the Part * @param is InputStream to be used to populate the Part's data * @return the new Part */ public static Part newInstance( final String contentType, final String name, final Properties props, final InputStream is) { return new Streamed(contentType, name, props, is); }
public Payload.Part next() { hasReturnedReport = true; return new PayloadImpl.Part.Streamed(contentType, "report", null, is); }
public Payload.Part next() { hasReturnedReport = true; return new PayloadImpl.Part.Streamed(contentType, "report", null, is); }
public Payload.Part next() { hasReturnedReport = true; return new PayloadImpl.Part.Streamed(contentType, "report", null, is); }
@Override public InputStream getInputStream() { InputStream extrIS = getExtractedInputStream(); if (extrIS == null) { return is; } else { return extrIS; } }