public abstract static class CoreIOUtils.AbstractItem extends Object implements CoreInput
| Constructor and Description |
|---|
AbstractItem(String name,
NutsString formattedName,
Object value,
boolean path,
boolean url,
String typeName,
NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
copyTo(Path path) |
protected NutsIOException |
createOpenError(Exception ex) |
Path |
getFilePath() |
NutsString |
getFormattedName() |
String |
getName() |
Object |
getSource() |
String |
getTypeName() |
URL |
getURL() |
List<String> |
head(int count) |
boolean |
isFile() |
boolean |
isURL() |
Stream<String> |
lines() |
MultiInput |
multi() |
abstract InputStream |
open() |
List<String> |
tail(int count) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentEncoding, getContentType, getLastModifiedInstant, lengthpublic AbstractItem(String name, NutsString formattedName, Object value, boolean path, boolean url, String typeName, NutsSession session)
public NutsString getFormattedName()
getFormattedName in interface NutsInputpublic String getTypeName()
getTypeName in interface NutsInputpublic void close()
close in interface AutoCloseableclose in interface NutsInputpublic abstract InputStream open()
public Path getFilePath()
getFilePath in interface NutsInputprotected NutsIOException createOpenError(Exception ex)
public MultiInput multi()
Copyright © 2021 vpc open source initiative. All rights reserved.