public class AbstractFileHandle
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.channels.FileChannel |
channel
The channel for the file, if any
|
protected int |
fd
The unique ID of this file within the script.
|
protected java.io.File |
file
A pointer to the physical file on the disk, wherever it is
|
protected java.lang.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(java.io.File file,
java.lang.String origPath,
java.nio.channels.FileChannel channel) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.channels.FileChannel |
getChannel() |
int |
getFd() |
java.io.File |
getFile() |
java.lang.String |
getOrigPath() |
long |
getPosition() |
void |
incrementPosition(long inc) |
void |
setChannel(java.nio.channels.FileChannel channel) |
void |
setFd(int fd) |
void |
setFile(java.io.File file) |
void |
setOrigPath(java.lang.String origPath) |
void |
setPosition(long position) |
protected java.nio.channels.FileChannel channel
protected int fd
protected java.io.File file
protected java.lang.String origPath
protected long position
protected AbstractFileHandle(java.io.File file,
java.lang.String origPath,
java.nio.channels.FileChannel channel)
public java.nio.channels.FileChannel getChannel()
public void setChannel(java.nio.channels.FileChannel channel)
public int getFd()
public void setFd(int fd)
public java.io.File getFile()
public void setFile(java.io.File file)
public java.lang.String getOrigPath()
public void setOrigPath(java.lang.String origPath)
public long getPosition()
public void setPosition(long position)
public void incrementPosition(long inc)
Copyright © 2018 Apigee Corporation. All Rights Reserved.