BASE_FORMAT_VERSION, DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
TextFormat()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
Format |
create(MimeType type)
Create an instance of this format corresponding to the given MIME type.
|
FormatReader |
createReader()
Returns a file format corresponding file format to read the raw data stream and to create pages
from the containing data.
|
String[] |
getDefaultExtensions()
Returns the default file extensions for this format
|
String |
getDescription()
Returns a description text for this format
|
MimeType |
getMimeType()
Return the string-encoded MIME-Type of the format.
|
String |
getName()
Returns a short description text for this format
|
int |
getPriority()
Return the priority with which this format will be selected, if there are multiple eligible ones.
|
String |
getVersion()
Returns the version of this format
|
boolean |
matches(SeekableInputStream stream)
Text formats always match a file.
|
canRead, canWrite, createWriter, equals, hashCode, isSecondary, isSupported, toString
public String[] getDefaultExtensions()
getDefaultExtensions
in class Format
public String getDescription()
getDescription
in class Format
public String getName()
public final String getVersion()
getVersion
in class Format
public final boolean matches(SeekableInputStream stream) throws IOException
matches
in class Format
stream
- contains the data to be tested.IOException
- if an io error occursFormat.matches(com.levigo.jadice.document.io.SeekableInputStream)
public final FormatReader createReader()
createReader
in class Format
public int getPriority()
Format
getPriority
in class Format
Format.MIN_PRIORITY
,
Format.DEFAULT_PRIORITY
,
Format.MAX_PRIORITY
public MimeType getMimeType()
Format
getMimeType
in class Format
Copyright © 2024 levigo holding gmbh. All rights reserved.