public class InputStreamOrPath extends Object
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
inputStream |
protected Path |
path |
| Constructor and Description |
|---|
InputStreamOrPath(InputStream inputStream) |
InputStreamOrPath(Path path) |
| Modifier and Type | Method and Description |
|---|---|
static InputStreamOrPath |
from(InputStream inputStream) |
static InputStreamOrPath |
from(Path path) |
InputStream |
getInputStream() |
Path |
getPath() |
boolean |
isPath() |
boolean |
isStream() |
protected Path path
protected InputStream inputStream
public InputStreamOrPath(Path path)
public InputStreamOrPath(InputStream inputStream)
public static InputStreamOrPath from(Path path)
public static InputStreamOrPath from(InputStream inputStream)
public boolean isPath()
public Path getPath()
public boolean isStream()
public InputStream getInputStream()
Copyright © 2020. All rights reserved.