src/share/classes/sun/nio/ch/IOStatus.java

Print this page

        

*** 23,45 **** * questions. */ package sun.nio.ch; // Constants for reporting I/O status public final class IOStatus { private IOStatus() { } ! public static final int EOF = -1; // End of file ! public static final int UNAVAILABLE = -2; // Nothing available (non-blocking) ! public static final int INTERRUPTED = -3; // System call interrupted ! public static final int UNSUPPORTED = -4; // Operation not supported ! public static final int THROWN = -5; // Exception thrown in JNI code ! public static final int UNSUPPORTED_CASE = -6; // This case not supported // The following two methods are for use in try/finally blocks where a // status value needs to be normalized before being returned to the invoker // but also checked for illegal negative values before the return // completes, like so: --- 23,46 ---- * questions. */ package sun.nio.ch; + import java.lang.annotation.Native; // Constants for reporting I/O status public final class IOStatus { private IOStatus() { } ! @Native public static final int EOF = -1; // End of file ! @Native public static final int UNAVAILABLE = -2; // Nothing available (non-blocking) ! @Native public static final int INTERRUPTED = -3; // System call interrupted ! @Native public static final int UNSUPPORTED = -4; // Operation not supported ! @Native public static final int THROWN = -5; // Exception thrown in JNI code ! @Native public static final int UNSUPPORTED_CASE = -6; // This case not supported // The following two methods are for use in try/finally blocks where a // status value needs to be normalized before being returned to the invoker // but also checked for illegal negative values before the return // completes, like so: