Example usage for org.apache.commons.vfs2.util RandomAccessMode equals

List of usage examples for org.apache.commons.vfs2.util RandomAccessMode equals

Introduction

In this page you can find the example usage for org.apache.commons.vfs2.util RandomAccessMode equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:org.apache.accumulo.start.classloader.vfs.providers.HdfsFileObject.java

@Override
protected RandomAccessContent doGetRandomAccessContent(final RandomAccessMode mode) throws Exception {
    if (mode.equals(RandomAccessMode.READWRITE)) {
        throw new UnsupportedOperationException();
    }//from  ww w. ja  v  a 2s  .c  o m
    return new HdfsRandomAccessContent(this.path, this.hdfs);
}