public class ProcessOutputResource extends AbstractResource implements CheckableResource
Resource
implementation to create an
operating system process process and capture its output.Constructor and Description |
---|
ProcessOutputResource(String... command) |
Modifier and Type | Method and Description |
---|---|
void |
check() |
String |
getDescription() |
InputStream |
getInputStream() |
String |
toString() |
contentLength, createRelative, equals, exists, getFile, getFileForLastModifiedCheck, getFilename, getURI, getURL, hashCode, isFile, isOpen, isReadable, lastModified, readableChannel
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contentLength, createRelative, exists, getFile, getFilename, getURI, getURL, isFile, isOpen, isReadable, lastModified, readableChannel
public ProcessOutputResource(String... command)
public String getDescription()
getDescription
in interface Resource
public InputStream getInputStream() throws IOException
getInputStream
in interface InputStreamSource
IOException
public String toString()
toString
in class AbstractResource
public void check() throws IOException
check
in interface CheckableResource
IOException
Copyright © 2024 Pivotal Software, Inc.. All rights reserved.