// Path: src/jdk/internal/jimage/ImageReader.java
// public static abstract class Node {
//     private static final int ROOT_DIR = 0b0000_0000_0000_0001;
//     private static final int MODULE_DIR = 0b0000_0000_0000_0010;
//     private static final int METAINF_DIR = 0b0000_0000_0000_0100;
//     private static final int TOPLEVEL_PKG_DIR = 0b0000_0000_0000_1000;
// 
//     private int flags;
//     private final UTF8String name;
//     private final BasicFileAttributes fileAttrs;
// 
//     Node(UTF8String name, BasicFileAttributes fileAttrs) {
//         assert name != null;
//         assert fileAttrs != null;
//         this.name = name;
//         this.fileAttrs = fileAttrs;
//     }
// 
//     public void setIsRootDir() {
//         flags |= ROOT_DIR;
//     }
// 
//     public boolean isRootDir() {
//         return (flags & ROOT_DIR) != 0;
//     }
// 
//     public void setIsModuleDir() {
//         flags |= MODULE_DIR;
//     }
// 
//     public boolean isModuleDir() {
//         return (flags & MODULE_DIR) != 0;
//     }
// 
//     public void setIsMetaInfDir() {
//         flags |= METAINF_DIR;
//     }
// 
//     public boolean isMetaInfDir() {
//         return (flags & METAINF_DIR) != 0;
//     }
// 
//     public void setIsTopLevelPackageDir() {
//         flags |= TOPLEVEL_PKG_DIR;
//     }
// 
//     public boolean isTopLevelPackageDir() {
//         return (flags & TOPLEVEL_PKG_DIR) != 0;
//     }
// 
//     public final UTF8String getName() {
//         return name;
//     }
// 
//     public final BasicFileAttributes getFileAttributes() {
//         return fileAttrs;
//     }
// 
//     public boolean isDirectory() {
//         return false;
//     }
// 
//     public List<Node> getChildren() {
//         throw new IllegalArgumentException("not a directory: " + getNameString());
//     }
// 
//     public boolean isResource() {
//         return false;
//     }
// 
//     public ImageLocation getLocation() {
//         throw new IllegalArgumentException("not a resource: " + getNameString());
//     }
// 
//     public long size() {
//         return 0L;
//     }
// 
//     public long compressedSize() {
//         return 0L;
//     }
// 
//     public String extension() {
//         return null;
//     }
// 
//     public long contentOffset() {
//         return 0L;
//     }
// 
//     public final FileTime creationTime() {
//         return fileAttrs.creationTime();
//     }
// 
//     public final FileTime lastAccessTime() {
//         return fileAttrs.lastAccessTime();
//     }
// 
//     public final FileTime lastModifiedTime() {
//         return fileAttrs.lastModifiedTime();
//     }
// 
//     public final String getNameString() {
//         return name.toString();
//     }
// 
//     @Override
//     public final String toString() {
//         return getNameString();
//     }
// 
//     @Override
//     public final int hashCode() {
//         return name.hashCode();
//     }
// 
//     @Override
//     public final boolean equals(Object other) {
//         if (this == other) {
//             return true;
//         }
// 
//         if (other instanceof Node) {
//             return name.equals(((Node) other).name);
//         }
// 
//         return false;
//     }
// }


import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileTime;
import java.util.Formatter;
import jdk.internal.jimage.ImageReader.Node;
/*
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * 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.
 */

package jdk.internal.jrtfs;


final class JrtFileAttributes implements BasicFileAttributes
{
// Path: src/jdk/internal/jimage/ImageReader.java
// public static abstract class Node {
//     private static final int ROOT_DIR = 0b0000_0000_0000_0001;
//     private static final int MODULE_DIR = 0b0000_0000_0000_0010;
//     private static final int METAINF_DIR = 0b0000_0000_0000_0100;
//     private static final int TOPLEVEL_PKG_DIR = 0b0000_0000_0000_1000;
// 
//     private int flags;
//     private final UTF8String name;
//     private final BasicFileAttributes fileAttrs;
// 
//     Node(UTF8String name, BasicFileAttributes fileAttrs) {
//         assert name != null;
//         assert fileAttrs != null;
//         this.name = name;
//         this.fileAttrs = fileAttrs;
//     }
// 
//     public void setIsRootDir() {
//         flags |= ROOT_DIR;
//     }
// 
//     public boolean isRootDir() {
//         return (flags & ROOT_DIR) != 0;
//     }
// 
//     public void setIsModuleDir() {
//         flags |= MODULE_DIR;
//     }
// 
//     public boolean isModuleDir() {
//         return (flags & MODULE_DIR) != 0;
//     }
// 
//     public void setIsMetaInfDir() {
//         flags |= METAINF_DIR;
//     }
// 
//     public boolean isMetaInfDir() {
//         return (flags & METAINF_DIR) != 0;
//     }
// 
//     public void setIsTopLevelPackageDir() {
//         flags |= TOPLEVEL_PKG_DIR;
//     }
// 
//     public boolean isTopLevelPackageDir() {
//         return (flags & TOPLEVEL_PKG_DIR) != 0;
//     }
// 
//     public final UTF8String getName() {
//         return name;
//     }
// 
//     public final BasicFileAttributes getFileAttributes() {
//         return fileAttrs;
//     }
// 
//     public boolean isDirectory() {
//         return false;
//     }
// 
//     public List<Node> getChildren() {
//         throw new IllegalArgumentException("not a directory: " + getNameString());
//     }
// 
//     public boolean isResource() {
//         return false;
//     }
// 
//     public ImageLocation getLocation() {
//         throw new IllegalArgumentException("not a resource: " + getNameString());
//     }
// 
//     public long size() {
//         return 0L;
//     }
// 
//     public long compressedSize() {
//         return 0L;
//     }
// 
//     public String extension() {
//         return null;
//     }
// 
//     public long contentOffset() {
//         return 0L;
//     }
// 
//     public final FileTime creationTime() {
//         return fileAttrs.creationTime();
//     }
// 
//     public final FileTime lastAccessTime() {
//         return fileAttrs.lastAccessTime();
//     }
// 
//     public final FileTime lastModifiedTime() {
//         return fileAttrs.lastModifiedTime();
//     }
// 
//     public final String getNameString() {
//         return name.toString();
//     }
// 
//     @Override
//     public final String toString() {
//         return getNameString();
//     }
// 
//     @Override
//     public final int hashCode() {
//         return name.hashCode();
//     }
// 
//     @Override
//     public final boolean equals(Object other) {
//         if (this == other) {
//             return true;
//         }
// 
//         if (other instanceof Node) {
//             return name.equals(((Node) other).name);
//         }
// 
//         return false;
//     }
// }


// Path: src/jdk/internal/jrtfs/JrtFileAttributes.java
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileTime;
import java.util.Formatter;
import jdk.internal.jimage.ImageReader.Node;

/*
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * 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.
 */

package jdk.internal.jrtfs;


final class JrtFileAttributes implements BasicFileAttributes
{
    private final Node node;