public class FileBuffer extends Buffer
Constructor and Description |
---|
FileBuffer(File file,
boolean forRead)
Creates an instance of a Buffer.
|
FileBuffer(File file,
boolean forRead,
int offset)
Creates an instance of a Buffer.
|
FileBuffer(String fileName,
boolean forRead)
Creates an instance of a Buffer.
|
FileBuffer(String fileName,
boolean forRead,
int offset)
Creates an instance of a Buffer.
|
Modifier and Type | Method and Description |
---|---|
String |
getFilename()
Gets the file name and path of the file.
|
InputStream |
getInputStream()
Gets an InputStream to read buffer information.
|
OutputStream |
getOutputStream()
Gets an OutputStream to write buffer information.
|
long |
getSize()
Gets the buffer size.
|
getOffset, isReadBuffer, setOffset, setReadFlag, toString
public FileBuffer(File file, boolean forRead, int offset)
public FileBuffer(File file, boolean forRead)
public FileBuffer(String fileName, boolean forRead, int offset)
public FileBuffer(String fileName, boolean forRead)
public long getSize()
public InputStream getInputStream() throws IOException
getInputStream
in class Buffer
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class Buffer
IOException
public String getFilename()
Copyright © 2003, 2023, Oracle and/or its affiliates.