Package org.apache.harmony.nio.internal

Examples of org.apache.harmony.nio.internal.ReadOnlyFileChannel


*/
public class FileChannelFactory {
  public static FileChannel getFileChannel(Object stream, long fd, int mode) {
        switch(mode){
        case IFileSystem.O_RDONLY:
            return new ReadOnlyFileChannel(stream, fd);
        case IFileSystem.O_WRONLY:
            return new WriteOnlyFileChannel(stream, fd);
        case IFileSystem.O_RDWR:
            return new ReadWriteFileChannel(stream, fd);
        case IFileSystem.O_RDWRSYNC:
View Full Code Here


*/
public class FileChannelFactory {
    public static FileChannel getFileChannel(Object stream, long fd, int mode) {
        switch (mode) {
            case IFileSystem.O_RDONLY:
                return new ReadOnlyFileChannel(stream, fd);
            case IFileSystem.O_WRONLY:
                return new WriteOnlyFileChannel(stream, fd);
            case IFileSystem.O_RDWR:
                return new ReadWriteFileChannel(stream, fd);
            case IFileSystem.O_RDWRSYNC:
View Full Code Here

TOP

Related Classes of org.apache.harmony.nio.internal.ReadOnlyFileChannel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.