/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Linux implementation of DosFileAttributeView for use on file systems such
* as ext3 that have extended attributes enabled and SAMBA configured to store
* DOS attributes.
*/
{
// the names of the DOS attributes (includes basic)
super(file, followLinks);
}
return "dos";
}
throws IOException
{
return;
}
return;
}
return;
}
return;
}
}
throws IOException
{
return builder.unmodifiableMap();
}
try {
return new DosFileAttributes() {
public FileTime lastModifiedTime() {
return attrs.lastModifiedTime();
}
public FileTime lastAccessTime() {
return attrs.lastAccessTime();
}
public FileTime creationTime() {
return attrs.creationTime();
}
public boolean isRegularFile() {
return attrs.isRegularFile();
}
public boolean isDirectory() {
return attrs.isDirectory();
}
public boolean isSymbolicLink() {
return attrs.isSymbolicLink();
}
public boolean isOther() {
}
public long size() {
}
}
public boolean isReadOnly() {
}
public boolean isHidden() {
}
public boolean isArchive() {
}
public boolean isSystem() {
}
};
} catch (UnixException x) {
return null; // keep compiler happy
} finally {
}
}
}
}
}
}
/**
* Reads the value of the user.DOSATTRIB extended attribute
*/
final int size = 24;
try {
int len = LinuxNativeDispatcher
if (len > 0) {
// ignore null terminator
len--;
// convert to String and parse
// should be something like 0x20
try {
} catch (NumberFormatException x) {
// ignore
}
}
}
} catch (UnixException x) {
// default value when attribute does not exist
return 0;
throw x;
} finally {
}
}
/**
* Updates the value of the user.DOSATTRIB extended attribute
*/
file.checkWrite();
try {
if (enable) {
} else {
}
try {
} finally {
}
}
} catch (UnixException x) {
} finally {
}
}
}