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, toStringpublic RemoteFile.RemoteFileInputStream getInputStream()
public RemoteFile.RemoteFileOutputStream getOutputStream()
public FileAttributes fetchAttributes() throws IOException
IOExceptionpublic long length()
throws IOException
IOExceptionpublic void setLength(long len)
throws IOException
IOExceptionpublic int read(long fileOffset,
byte[] to,
int offset,
int len)
throws IOException
IOExceptionpublic void write(long fileOffset,
byte[] data,
int off,
int len)
throws IOException
IOExceptionpublic void setAttributes(FileAttributes attrs) throws IOException
IOExceptionpublic int getOutgoingPacketOverhead()
Copyright © 2009–2016. All rights reserved.