public final class DocumentFormat extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DocumentFormat.Builder
A builder for constructing a
DocumentFormat. |
| Modifier and Type | Method and Description |
|---|---|
static @NonNull DocumentFormat.Builder |
builder()
Creates a new builder instance.
|
static @NonNull DocumentFormat.Builder |
builder(@NonNull DocumentFormat sourceFormat)
Creates a new builder instance from the specified format.
|
static @NonNull DocumentFormat |
copy(@NonNull DocumentFormat sourceFormat)
Creates a new modifiable
DocumentFormat from the specified format. |
@NonNull String |
getExtension()
Gets the extension associated with the document format.
|
@NonNull List<String> |
getExtensions()
Gets the file name extensions of the document format.
|
@Nullable DocumentFamily |
getInputFamily()
Gets the input DocumentFamily of the document format.
|
@Nullable Map<String,Object> |
getLoadProperties()
Gets the properties required to load(open) a document of this format.
|
@NonNull String |
getMediaType()
Gets the media (mime) type of the format.
|
@NonNull String |
getName()
Gets the name of the format.
|
@Nullable Map<DocumentFamily,Map<String,Object>> |
getStoreProperties()
Gets the properties required to store(save) a document of this format to a document of
supported families.
|
@Nullable Map<String,Object> |
getStoreProperties(@NonNull DocumentFamily family)
Gets the properties required to store(save) a document to this format from a document of the
specified family.
|
@NonNull String |
toString() |
static @NonNull DocumentFormat |
unmodifiableCopy(@NonNull DocumentFormat sourceFormat)
Creates a new unmodifiable
DocumentFormat from the specified format. |
public static @NonNull DocumentFormat.Builder builder()
public static @NonNull DocumentFormat.Builder builder(@NonNull DocumentFormat sourceFormat)
sourceFormat - The source document format.public static @NonNull DocumentFormat copy(@NonNull DocumentFormat sourceFormat)
DocumentFormat from the specified format.sourceFormat - The source document format.DocumentFormat, which will be modifiable, unlike the default document formats
are.public static @NonNull DocumentFormat unmodifiableCopy(@NonNull DocumentFormat sourceFormat)
DocumentFormat from the specified format.sourceFormat - The source document format.DocumentFormat, which will be unmodifiable, like the default document formats
are.public @NonNull String getExtension()
#getExtensions().get(0).public @NonNull List<String> getExtensions()
public @Nullable DocumentFamily getInputFamily()
public @Nullable Map<String,Object> getLoadProperties()
public @NonNull String getMediaType()
public @NonNull String getName()
public @Nullable Map<DocumentFamily,Map<String,Object>> getStoreProperties()
public @Nullable Map<String,Object> getStoreProperties(@NonNull DocumentFamily family)
family - The DocumentFamily for which the properties are get.Copyright © 2016 - present; JODConverter.org. All rights reserved.