public final class FileType extends Object implements OpenOption, CopyOption
Modifier and Type | Class and Description |
---|---|
static class |
FileType.Format
The possible FTP text formats.
|
Modifier and Type | Method and Description |
---|---|
static FileType |
ascii()
Returns an ASCII file type with an unspecified text format.
|
static FileType |
ascii(FileType.Format format)
Returns an ASCII file type with a specific text format.
|
static FileType |
binary()
Returns a binary file type with an unspecified text format.
|
static FileType |
ebcdic()
Returns an EBCDIC file type with an unspecified text format.
|
static FileType |
ebcdic(FileType.Format format)
Returns an EBCDIC file type with a specific text format.
|
boolean |
equals(Object o) |
int |
hashCode() |
static FileType |
local()
Returns a local file type with an unspecified byte size.
|
static FileType |
local(int byteSize)
Returns a local file type with a specific byte size.
|
String |
toString() |
public static FileType ascii()
public static FileType ascii(FileType.Format format)
format
- The text format for the file type; ignored if null
.public static FileType ebcdic()
public static FileType ebcdic(FileType.Format format)
format
- The text format for the file type; ignored if null
.public static FileType binary()
public static FileType local()
public static FileType local(int byteSize)
byteSize
- The byte size for the file type; ignored if not larger than 0.Copyright © 2016–2024. All rights reserved.