@Immutable public class HttpNode extends FsAbstractNode implements net.java.truecommons.cio.IoEntry<HttpNode>
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getMembers()
Returns a set of strings with the base names of the members of this
directory node or
null if and only if this is not a directory
node. |
String |
getName()
Returns a string representation of the
file system node name. |
long |
getSize(net.java.truecommons.cio.Entry.Size type) |
long |
getTime(net.java.truecommons.cio.Entry.Access type) |
net.java.truecommons.shed.BitField<net.java.truecommons.cio.Entry.Type> |
getTypes()
Returns a bit field of types implemented by this file system node.
|
net.java.truecommons.cio.InputSocket<HttpNode> |
input() |
protected net.java.truecommons.cio.InputSocket<HttpNode> |
input(net.java.truecommons.shed.BitField<FsAccessOption> options) |
Boolean |
isPermitted(net.java.truecommons.cio.Entry.Access type,
net.java.truecommons.cio.Entry.Entity entity) |
boolean |
isType(net.java.truecommons.cio.Entry.Type type)
Returns
true if and only if this file system node implements
the given type. |
protected org.apache.http.client.methods.HttpUriRequest |
newGet() |
protected org.apache.http.client.methods.HttpUriRequest |
newHead() |
protected InputStream |
newInputStream() |
protected OutputStream |
newOutputStream() |
net.java.truecommons.cio.OutputSocket<HttpNode> |
output() |
protected net.java.truecommons.cio.OutputSocket<HttpNode> |
output(net.java.truecommons.shed.BitField<FsAccessOption> options,
net.java.truecommons.cio.Entry template) |
toStringprotected final URI uri
@Nullable public Set<String> getMembers()
FsNodenull if and only if this is not a directory
node.
Whether or not modifying the returned set is supported and the effect
on the file system is implementation specific.getMembers in interface FsNodenull if and only if this is not a
directory node.public String getName()
FsNodefile system node name.getName in interface net.java.truecommons.cio.EntrygetName in interface FsNodefile system node name.public long getSize(net.java.truecommons.cio.Entry.Size type)
getSize in interface net.java.truecommons.cio.Entrypublic long getTime(net.java.truecommons.cio.Entry.Access type)
getTime in interface net.java.truecommons.cio.Entrypublic net.java.truecommons.shed.BitField<net.java.truecommons.cio.Entry.Type> getTypes()
FsNode
Some file system types allow a node to implement multiple types.
For example, a ZIP or TAR file may contain an archive entry with the
name foo and a directory archive entry with the name foo/.
Yes, this is strange, but sh*t happens!
In this case then, a virtual file system should collapse this into one
file system node which returns true for both
isType(FILE) and isType(DIRECTORY).
public final net.java.truecommons.cio.InputSocket<HttpNode> input()
input in interface net.java.truecommons.cio.IoEntry<HttpNode>protected net.java.truecommons.cio.InputSocket<HttpNode> input(net.java.truecommons.shed.BitField<FsAccessOption> options)
public Boolean isPermitted(net.java.truecommons.cio.Entry.Access type, net.java.truecommons.cio.Entry.Entity entity)
isPermitted in interface net.java.truecommons.cio.Entrypublic boolean isType(net.java.truecommons.cio.Entry.Type type)
FsNodetrue if and only if this file system node implements
the given type.isType in interface FsNodeisType in class FsAbstractNodetype - the type to test.true if and only if this file system node implements
the given type.FsNode.getTypes()protected org.apache.http.client.methods.HttpUriRequest newGet()
protected org.apache.http.client.methods.HttpUriRequest newHead()
protected InputStream newInputStream() throws IOException
IOExceptionprotected OutputStream newOutputStream() throws IOException
IOExceptionpublic final net.java.truecommons.cio.OutputSocket<HttpNode> output()
output in interface net.java.truecommons.cio.IoEntry<HttpNode>protected net.java.truecommons.cio.OutputSocket<HttpNode> output(net.java.truecommons.shed.BitField<FsAccessOption> options, @CheckForNull net.java.truecommons.cio.Entry template)
Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.