public final class FileOptionValue
extends java.lang.Object
FileOption
since a seperate
setOption
methods exist for each representation.Modifier and Type | Field and Description |
---|---|
static int |
BYTEBUFFER |
static int |
FILE |
static int |
FILECHANNEL |
static int |
INPUTSTREAM |
static int |
OUTPUTSTREAM |
static int |
SIMPLECHANNEL |
static int |
URL |
Constructor and Description |
---|
FileOptionValue(java.nio.ByteBuffer bytebuffer) |
FileOptionValue(java.io.File file) |
FileOptionValue(java.nio.channels.FileChannel filechannel) |
FileOptionValue(java.io.InputStream inputstream) |
FileOptionValue(java.io.OutputStream outputstream) |
FileOptionValue(SimpleChannel simplechannel) |
FileOptionValue(java.net.URL url) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Override equals
|
java.nio.ByteBuffer |
getByteBuffer()
Returns the value if it is a ByteBuffer
|
java.io.File |
getFile()
Returns the value if it is a File
|
java.nio.channels.FileChannel |
getFileChannel()
Returns the value if it is a FileChannel
|
java.io.InputStream |
getInputStream()
Returns the value if it is a InputStream
|
java.io.OutputStream |
getOutputStream()
Returns the value if it is a OutputStream
|
SimpleChannel |
getSimpleChannel()
Returns the value if it is a SimpleChannel
|
int |
getType()
Gets the type of the value
|
java.net.URL |
getURL()
Returns the value if it is a URL
|
boolean |
isByteBuffer()
Test whether the value is a ByteBuffer
|
boolean |
isFile()
Test whether the value is a File
|
boolean |
isFileChannel()
Test whether the value is a FileChannel
|
boolean |
isInputStream()
Test whether the value is a InputStream
|
boolean |
isOutputStream()
Test whether the value is a OutputStream
|
boolean |
isSimpleChannel()
Test whether the value is a SimpleChannel
|
boolean |
isURL()
Test whether the value is a URL
|
java.lang.String |
toString() |
public static final int FILE
public static final int URL
public static final int INPUTSTREAM
public static final int FILECHANNEL
public static final int BYTEBUFFER
public static final int SIMPLECHANNEL
public static final int OUTPUTSTREAM
public FileOptionValue(java.io.File file)
public FileOptionValue(java.net.URL url)
public FileOptionValue(java.io.InputStream inputstream)
public FileOptionValue(java.nio.channels.FileChannel filechannel)
public FileOptionValue(java.nio.ByteBuffer bytebuffer)
public FileOptionValue(SimpleChannel simplechannel)
public FileOptionValue(java.io.OutputStream outputstream)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getType()
public boolean isFile()
public boolean isURL()
public boolean isInputStream()
public boolean isFileChannel()
public boolean isByteBuffer()
public boolean isSimpleChannel()
public boolean isOutputStream()
public java.io.File getFile()
public java.net.URL getURL()
public java.io.InputStream getInputStream()
public java.nio.channels.FileChannel getFileChannel()
public java.nio.ByteBuffer getByteBuffer()
public SimpleChannel getSimpleChannel()
public java.io.OutputStream getOutputStream()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021 Oracle. All right reserved. Restricted and confidential property of Oracle. Solely for use by recipent under agreement forbidding disclosure.