@Namespace(value="arrow::io") @NoOffset @Properties(inherit=arrow.class) public class FileOutputStream extends OutputStream
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
FileOutputStream(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Status |
Close()
\brief Close the stream cleanly
For writable streams, this will attempt to flush any pending data
before releasing the underlying resource.
|
boolean |
closed()
\brief Return whether the stream is closed
|
int |
file_descriptor()
\endcond
|
static FileOutputStreamResult |
Open(BytePointer path) |
static FileOutputStreamResult |
Open(BytePointer path,
boolean append) |
static FileOutputStreamResult |
Open(int fd)
\brief Open a file descriptor for writing.
|
static FileOutputStreamResult |
Open(String path) |
static FileOutputStreamResult |
Open(String path,
boolean append)
\brief Open a local file for writing, truncating any existing file
|
LongResult |
Tell()
\brief Return the position in this stream
|
Status |
Write(Pointer data,
long nbytes) |
asWritable, asWritableAbort, modeaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic FileOutputStream(Pointer p)
Pointer(Pointer).@ByVal public static FileOutputStreamResult Open(@StdString String path, @Cast(value="bool") boolean append)
path - [in] with UTF8 encodingappend - [in] append to existing file, otherwise truncate to 0 bytes@ByVal public static FileOutputStreamResult Open(@StdString String path)
@ByVal public static FileOutputStreamResult Open(@StdString BytePointer path, @Cast(value="bool") boolean append)
@ByVal public static FileOutputStreamResult Open(@StdString BytePointer path)
@ByVal public static FileOutputStreamResult Open(int fd)
fd - [in] file descriptor@ByVal public Status Close()
FileInterfaceClose in class FileInterface@Cast(value="bool") public boolean closed()
FileInterfaceclosed in class FileInterface@ByVal public LongResult Tell()
FileInterfaceTell in class FileInterfacepublic int file_descriptor()
Copyright © 2021. All rights reserved.