changeset 146:c62fcea05b22

Merge
author amironov
date Wed, 01 Apr 2015 20:10:31 +0300
parents 6d9b5908ed85 272acbd84e9c
children 23a1887bf42a
files
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/jdk/dio/Device.java	Tue Mar 31 22:00:01 2015 +0300
+++ b/src/share/classes/jdk/dio/Device.java	Wed Apr 01 20:10:31 2015 +0300
@@ -138,4 +138,24 @@
      *         information of this device.
      */
     <U extends P> DeviceDescriptor<U> getDescriptor();
+
+    /**
+     * Retrieves this device's byte order.
+     * <p />
+     * The byte order is used when performing multi-byte value I/O operations. The byte
+     * order of a device that only performs single-byte value I/O operations
+     * is always {@link java.nio.ByteOrder#BIG_ENDIAN BIG_ENDIAN}.
+     *
+     * @return this buffer's byte order.
+     *
+     * @throws IOException
+     *             if some other I/O error occurs.
+     * @throws UnavailableDeviceException
+     *             if this device is not currently available - such as it is locked by another application.
+     * @throws ClosedDeviceException
+     *             if the device has been closed.
+     *
+     * @since 1.1
+     */
+    ByteOrder getByteOrder() throws IOException, UnavailableDeviceException, ClosedDeviceException;
 }