public class RWAttributesBuilder extends Object
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Stephan Pfab BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **** END LICENSE BLOCK ****
| Modifier and Type | Class and Description |
|---|---|
static class |
RWAttributesBuilder.OneBuilder<V extends FileAttributeView> |
static class |
RWAttributesBuilder.TwoBuilder<V extends BasicFileAttributeView,R extends BasicFileAttributes> |
| Modifier and Type | Field and Description |
|---|---|
static String |
CREATION_TIME_NAME |
static String |
FILE_KEY_NAME |
static String |
IS_DIRECTORY_NAME |
static String |
IS_OTHER_NAME |
static String |
IS_REGULAR_FILE_NAME |
static String |
IS_SYMBOLIC_LINK_NAME |
static String |
LAST_ACCESS_TIME_NAME |
static String |
LAST_MODIFIED_TIME_NAME |
static String |
SIZE_NAME |
| Constructor and Description |
|---|
RWAttributesBuilder() |
| Modifier and Type | Method and Description |
|---|---|
RWAttributesBuilder |
addBasic() |
RWAttributesBuilder |
addDos() |
RWAttributesBuilder |
addOwner() |
RWAttributesBuilder |
addPosix() |
static RWAttributesBuilder |
attributes() |
AttributeProvider |
build() |
<V extends BasicFileAttributeView,R extends BasicFileAttributes> |
viewAndRead(String name,
Class<V> viewClass,
Class<R> readerClass) |
<V extends FileAttributeView> |
viewOnly(String name,
Class<V> viewClass) |
public static final String SIZE_NAME
public static final String CREATION_TIME_NAME
public static final String LAST_ACCESS_TIME_NAME
public static final String LAST_MODIFIED_TIME_NAME
public static final String FILE_KEY_NAME
public static final String IS_DIRECTORY_NAME
public static final String IS_REGULAR_FILE_NAME
public static final String IS_SYMBOLIC_LINK_NAME
public static final String IS_OTHER_NAME
public static RWAttributesBuilder attributes()
public RWAttributesBuilder addBasic()
public RWAttributesBuilder addPosix()
public RWAttributesBuilder addOwner()
public RWAttributesBuilder addDos()
public <V extends FileAttributeView> RWAttributesBuilder.OneBuilder<V> viewOnly(String name, Class<V> viewClass)
public <V extends BasicFileAttributeView,R extends BasicFileAttributes> RWAttributesBuilder.TwoBuilder<V,R> viewAndRead(String name, Class<V> viewClass, Class<R> readerClass)
public AttributeProvider build()
Copyright © 2015. All rights reserved.