public final class Messages extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Messages.ByteChannelMessages
A utility class for providing translated messages and exceptions for (seekable) byte channels.
|
static class |
Messages.DirectoryStreamMessages
A utility class for providing translated messages and exceptions for directory streams.
|
static class |
Messages.FileChannelMessages
A utility class for providing translated messages and exceptions for file channels.
|
static class |
Messages.FileStoreMessages
A utility class for providing translated messages and exceptions for file stores.
|
static class |
Messages.FileSystemProviderEnvMessages
A utility class for providing translated messages and exceptions for file system provider properties.
|
static class |
Messages.FileSystemProviderMessages
A utility class for providing translated messages and exceptions for file system providers.
|
static class |
Messages.PathMatcherGlobMessages
A utility class for providing translated messages and exceptions for globs.
|
static class |
Messages.PathMatcherMessages
A utility class for providing translated messages and exceptions for path matchers.
|
static class |
Messages.PathMessages
A utility class for providing translated messages and exceptions for paths.
|
static class |
Messages.URIMessages
A utility class for providing translated messages and exceptions for URI validation.
|
Modifier and Type | Method and Description |
---|---|
static Messages.ByteChannelMessages |
byteChannel()
Returns an object for providing translated messages and exceptions for (seekable) byte channels.
|
static Messages.DirectoryStreamMessages |
directoryStream()
Returns an object for providing translated messages and exceptions for directory streams.
|
static Messages.FileChannelMessages |
fileChannel()
Returns an object for providing translated messages and exceptions for file channels.
|
static Messages.FileStoreMessages |
fileStore()
Returns an object for providing translated messages and exceptions for file stores.
|
static Messages.FileSystemProviderMessages |
fileSystemProvider()
Returns an object for providing translated messages and exceptions for file system providers.
|
static IllegalArgumentException |
invalidIndex(int index)
Creates an exception that can be thrown for an invalid index.
|
static IllegalArgumentException |
invalidRange(int beginIndex,
int endIndex)
Creates an exception that can be thrown for an invalid range.
|
static Messages.PathMessages |
path()
Returns an object for providing translated messages and exceptions for paths.
|
static Messages.PathMatcherMessages |
pathMatcher()
Returns an object for providing translated messages and exceptions for path matchers.
|
static UnsupportedOperationException |
unsupportedOperation(Class<?> cls,
String operation)
Creates an
UnsupportedOperationException that can be thrown if an I/O operation, such as
BasicFileAttributeView.setTimes(FileTime, FileTime, FileTime) , is not supported. |
static Messages.URIMessages |
uri()
Returns an object for providing translated messages and exceptions for URI validation.
|
public static IllegalArgumentException invalidIndex(int index)
index
- The index that was invalid.public static IllegalArgumentException invalidRange(int beginIndex, int endIndex)
beginIndex
- The begin index of the range, inclusive.endIndex
- The end index of the range, exclusive.public static UnsupportedOperationException unsupportedOperation(Class<?> cls, String operation)
UnsupportedOperationException
that can be thrown if an I/O operation, such as
BasicFileAttributeView.setTimes(FileTime, FileTime, FileTime)
, is not supported.cls
- The class defining the operation, e.g. BasicFileAttributeView
.operation
- The name of the operation (method).public static Messages.PathMessages path()
public static Messages.PathMatcherMessages pathMatcher()
public static Messages.FileStoreMessages fileStore()
public static Messages.FileSystemProviderMessages fileSystemProvider()
public static Messages.DirectoryStreamMessages directoryStream()
public static Messages.FileChannelMessages fileChannel()
public static Messages.ByteChannelMessages byteChannel()
public static Messages.URIMessages uri()
Copyright © 2016–2023. All rights reserved.