public class OWFileDescriptor
extends java.lang.Object
OWFileInputStream
or OWFileOutputStream
to
contain it.
Applications should not create their own file descriptors.
OWFile
,
OWFileInputStream
,
OWFileOutputStream
Constructor and Description |
---|
OWFileDescriptor()
Construct an invalid 1-Wire FileDescriptor
|
public OWFileDescriptor()
public boolean valid()
true
if the file descriptor object represents a
valid, open file, socket, or other active I/O connection;
false
otherwise.public void sync() throws OWSyncFailedException
This method may be called multiple times if the source of OWSyncFailedException has been rectified (1-Wire device was reattached to the network).
OWSyncFailedException
- Thrown when the buffers cannot be flushed,
or because the system cannot guarantee that all the
buffers have been synchronized with physical media.Copyright © 1999-2012 Maxim Integrated Products. All Rights Reserved.