public class AttachmentUtil extends Object
Constructor and Description |
---|
AttachmentUtil(hudson.model.Run<?,?> runObj,
hudson.model.TaskListener listener) |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
InputStream |
getInputStream() |
org.apache.commons.httpclient.methods.multipart.Part[] |
getLogAttachment(String filename) |
InputStream |
getLogFileContennt(InputStream stream) |
String |
getName() |
OutputStream |
getOutputStream() |
long |
getSize() |
public AttachmentUtil(hudson.model.Run<?,?> runObj, hudson.model.TaskListener listener)
runObj
- Run Object of Buildlistener
- listener Receives events that happen during a buildpublic InputStream getInputStream()
public OutputStream getOutputStream() throws IOException
IOException
- unsuported operationpublic String getContentType()
public String getName()
public long getSize()
public InputStream getLogFileContennt(InputStream stream) throws IOException
stream
- InputStream of the Log fileIOException
- Input/Output errorpublic org.apache.commons.httpclient.methods.multipart.Part[] getLogAttachment(String filename) throws IOException
filename
- Filename of the log fileIOException
- Input/Output errorCopyright © 2016–2021. All rights reserved.