public abstract static class CoreIOUtils.AbstractItem extends Object implements CoreInput
| Constructor and Description |
|---|
AbstractItem(String name,
net.thevpc.nuts.NutsString formattedName,
Object value,
boolean path,
boolean url,
String typeName,
net.thevpc.nuts.NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
copyTo(Path path) |
protected net.thevpc.nuts.NutsIOException |
createOpenError(Exception ex) |
Path |
getFilePath() |
net.thevpc.nuts.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) |
public net.thevpc.nuts.NutsString getFormattedName()
getFormattedName in interface net.thevpc.nuts.NutsInputpublic String getName()
getName in interface net.thevpc.nuts.NutsInputpublic String getTypeName()
getTypeName in interface net.thevpc.nuts.NutsInputpublic void close()
close in interface AutoCloseableclose in interface net.thevpc.nuts.NutsInputpublic abstract InputStream open()
open in interface net.thevpc.nuts.NutsInputpublic Object getSource()
getSource in interface net.thevpc.nuts.NutsInputpublic boolean isFile()
isFile in interface net.thevpc.nuts.NutsInputpublic Path getFilePath()
getFilePath in interface net.thevpc.nuts.NutsInputpublic boolean isURL()
isURL in interface net.thevpc.nuts.NutsInputpublic URL getURL()
getURL in interface net.thevpc.nuts.NutsInputprotected net.thevpc.nuts.NutsIOException createOpenError(Exception ex)
public MultiInput multi()
Copyright © 2021 vpc open source initiative. All rights reserved.