public static final class Comparisons.Side extends Object
Comparisons.Side instances provided to Comparisons.createComparison(com.draftable.api.client.Comparisons.Side, com.draftable.api.client.Comparisons.Side) to provide the left and right files.| Modifier and Type | Method and Description |
|---|---|
static Comparisons.Side |
create(byte[] fileBytes,
String fileType)
Creates a
Comparisons.Side for a file provided by as a byte array. |
static Comparisons.Side |
create(byte[] fileBytes,
String fileType,
String displayName)
Creates a
Comparisons.Side for a file provided by as a byte array. |
static Comparisons.Side |
create(File file)
Creates a
Comparisons.Side for a file provided by a given File instance, with an inferred file type and no display name. |
static Comparisons.Side |
create(File file,
String fileType)
Creates a
Comparisons.Side for a file provided by a given File instance. |
static Comparisons.Side |
create(File file,
String fileType,
String displayName)
Creates a
Comparisons.Side for a file provided by a given File instance. |
static Comparisons.Side |
create(InputStream fileStream,
String fileType)
Creates a
Comparisons.Side for a file provided by as an InputStream. |
static Comparisons.Side |
create(InputStream fileStream,
String fileType,
String displayName)
Creates a
Comparisons.Side for a file provided by as an InputStream. |
static Comparisons.Side |
create(String sourceURL,
String fileType)
Creates a
Comparisons.Side for a file provided by a URL. |
static Comparisons.Side |
create(String sourceURL,
String fileType,
String displayName)
Creates a
Comparisons.Side for a file provided by a URL. |
static Comparisons.Side |
create(URI sourceURI,
String fileType)
Creates a
Comparisons.Side for a file provided by a URI. |
static Comparisons.Side |
create(URI sourceURI,
String fileType,
String displayName)
Creates a
Comparisons.Side for a file provided by a URI. |
@Nonnull public static Comparisons.Side create(@Nonnull String sourceURL, @Nonnull String fileType, @Nullable String displayName)
Comparisons.Side for a file provided by a URL.sourceURL - The URL at which the file can be accessed by the Draftable servers.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).displayName - An optional name for the file, to be displayed in the comparison.Comparisons.Side instance representing the given source URL and file information.@Nonnull public static Comparisons.Side create(@Nonnull String sourceURL, @Nonnull String fileType)
Comparisons.Side for a file provided by a URL.sourceURL - The URL at which the file can be accessed by the Draftable servers.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).Comparisons.Side instance representing the given source URL and file information.@Nonnull public static Comparisons.Side create(@Nonnull URI sourceURI, @Nonnull String fileType, @Nullable String displayName)
Comparisons.Side for a file provided by a URI.sourceURI - The URI at which the file can be accessed by the Draftable servers.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).displayName - An optional name for the file, to be displayed in the comparison.Comparisons.Side instance representing the given source URI and file information.@Nonnull public static Comparisons.Side create(@Nonnull URI sourceURI, @Nonnull String fileType)
Comparisons.Side for a file provided by a URI.sourceURI - The URI at which the file can be accessed by the Draftable servers.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).Comparisons.Side instance representing the given source URI and file information.@Nonnull public static Comparisons.Side create(@Nonnull File file, @Nonnull String fileType, @Nullable String displayName)
Comparisons.Side for a file provided by a given File instance.file - The File object providing the content.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).displayName - An optional name for the file, to be displayed in the comparison.Comparisons.Side instance representing the given File and file information.@Nonnull public static Comparisons.Side create(@Nonnull File file, @Nonnull String fileType)
Comparisons.Side for a file provided by a given File instance.file - The File object providing the content.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).Comparisons.Side instance representing the given File and file information.@Nonnull public static Comparisons.Side create(@Nonnull File file)
Comparisons.Side for a file provided by a given File instance, with an inferred file type and no display name.file - The File object providing the content.Comparisons.Side instance representing the given File, with an inferred file type and no display name.@Nonnull public static Comparisons.Side create(@Nonnull byte[] fileBytes, @Nonnull String fileType, @Nullable String displayName)
Comparisons.Side for a file provided by as a byte array.fileBytes - The byte array providing the file's content.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).displayName - An optional name for the file, to be displayed in the comparison.Comparisons.Side instance representing the a file with the given content and information.@Nonnull public static Comparisons.Side create(@Nonnull byte[] fileBytes, @Nonnull String fileType)
Comparisons.Side for a file provided by as a byte array.fileBytes - The byte array providing the file's content.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).Comparisons.Side instance representing the a file with the given content and information.@Nonnull public static Comparisons.Side create(@Nonnull InputStream fileStream, @Nonnull String fileType, @Nullable String displayName)
Comparisons.Side for a file provided by as an InputStream.fileStream - The InputStream providing the file's content.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).displayName - An optional name for the file, to be displayed in the comparison.Comparisons.Side instance representing the a file with the given content and information.@Nonnull public static Comparisons.Side create(@Nonnull InputStream fileStream, @Nonnull String fileType)
Comparisons.Side for a file provided by as an InputStream.fileStream - The InputStream providing the file's content.fileType - The file's extension. This must be one of the API's supported file extensions (PDF, Word, PowerPoint).Comparisons.Side instance representing the a file with the given content and information.Copyright © 2017. All rights reserved.