public class RemoteFile extends RemoteResource
Modifier and Type | Class and Description |
---|---|
class |
RemoteFile.RemoteFileInputStream |
class |
RemoteFile.RemoteFileOutputStream |
handle, log, path, requester
Constructor and Description |
---|
RemoteFile(Requester requester,
String path,
String handle) |
Modifier and Type | Method and Description |
---|---|
FileAttributes |
fetchAttributes() |
RemoteFile.RemoteFileInputStream |
getInputStream() |
int |
getOutgoingPacketOverhead() |
RemoteFile.RemoteFileOutputStream |
getOutputStream() |
long |
length() |
int |
read(long fileOffset,
byte[] to,
int offset,
int len) |
void |
setAttributes(FileAttributes attrs) |
void |
setLength(long len) |
void |
write(long fileOffset,
byte[] data,
int off,
int len) |
close, getPath, newRequest, toString
public RemoteFile.RemoteFileInputStream getInputStream()
public RemoteFile.RemoteFileOutputStream getOutputStream()
public FileAttributes fetchAttributes() throws IOException
IOException
public long length() throws IOException
IOException
public void setLength(long len) throws IOException
IOException
public int read(long fileOffset, byte[] to, int offset, int len) throws IOException
IOException
public void write(long fileOffset, byte[] data, int off, int len) throws IOException
IOException
public void setAttributes(FileAttributes attrs) throws IOException
IOException
public int getOutgoingPacketOverhead()
Copyright © 2009-2013. All Rights Reserved.