public class P4SCMFile
extends jenkins.scm.api.SCMFile
Constructor and Description |
---|
P4SCMFile(P4SCMFileSystem fs) |
P4SCMFile(P4SCMFileSystem fs,
P4SCMFile parent,
String name,
boolean isDir) |
Modifier and Type | Method and Description |
---|---|
Iterable<jenkins.scm.api.SCMFile> |
children()
If this object represents a directory, lists up all the immediate children.
|
InputStream |
content()
Reads the content of this file.
|
long |
lastModified()
Returns the time that the
SCMFile was last modified. |
protected jenkins.scm.api.SCMFile |
newChild(String name,
boolean assumeIsDirectory) |
protected jenkins.scm.api.SCMFile.Type |
type()
The type of this object.
|
public P4SCMFile(P4SCMFileSystem fs)
public P4SCMFile(P4SCMFileSystem fs, @NonNull P4SCMFile parent, String name, boolean isDir)
protected jenkins.scm.api.SCMFile newChild(@NonNull String name, boolean assumeIsDirectory)
newChild
in class jenkins.scm.api.SCMFile
public Iterable<jenkins.scm.api.SCMFile> children() throws IOException, InterruptedException
children
in class jenkins.scm.api.SCMFile
IOException
- if an error occurs while performing the operation.InterruptedException
- if interrupted while performing the operation.public long lastModified() throws IOException, InterruptedException
SCMFile
was last modified.lastModified
in class jenkins.scm.api.SCMFile
long
value representing the time the file was last modified, measured in milliseconds
since the epoch (00:00:00 GMT, January 1, 1970) or 0L
if the operation is unsupported.IOException
- if an error occurs while performing the operation.InterruptedException
- if interrupted while performing the operation.protected jenkins.scm.api.SCMFile.Type type() throws IOException, InterruptedException
type
in class jenkins.scm.api.SCMFile
Type
of this object, specifically Type#NONEXISTENT
if this SCMFile
instance
does not exist in the remote system (e.g. if you created a nonexistent instance via SCMFile.child(String)
)IOException
- if an error occurs while performing the operation.InterruptedException
- if interrupted while performing the operation.public InputStream content() throws IOException, InterruptedException
content
in class jenkins.scm.api.SCMFile
IOException
- if this object represents a directory or if an error occurs while performing the
operation.InterruptedException
- if interrupted while performing the operation.Copyright © 2016–2019. All rights reserved.