public class AbstractFileHandle extends Object
| Modifier and Type | Field and Description |
|---|---|
protected FileChannel |
channel
The channel for the file, if any
|
protected int |
fd
The unique ID of this file within the script.
|
protected File |
file
A pointer to the physical file on the disk, wherever it is
|
protected String |
origPath
The original file name, relative to the path translator
|
protected long |
position
Position where we are writing in the file, for appending
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFileHandle(File file,
String origPath,
FileChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
FileChannel |
getChannel() |
int |
getFd() |
File |
getFile() |
String |
getOrigPath() |
long |
getPosition() |
void |
incrementPosition(long inc) |
void |
setChannel(FileChannel channel) |
void |
setFd(int fd) |
void |
setFile(File file) |
void |
setOrigPath(String origPath) |
void |
setPosition(long position) |
protected FileChannel channel
protected int fd
protected File file
protected String origPath
protected long position
protected AbstractFileHandle(File file, String origPath, FileChannel channel)
public FileChannel getChannel()
public void setChannel(FileChannel channel)
public int getFd()
public void setFd(int fd)
public File getFile()
public void setFile(File file)
public String getOrigPath()
public void setOrigPath(String origPath)
public long getPosition()
public void setPosition(long position)
public void incrementPosition(long inc)
Copyright © 2016 Apigee Corporation. All Rights Reserved.