public class BookUtil extends Object
Constructor and Description |
---|
BookUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
appendExtension(String fileName,
Book book)
Attach extension for a file name if the extension dones't exist
|
static File |
getWorkingFolder() |
static File |
saveBookToWorkingFolder(Book book) |
static File |
saveBookToWorkingFolder(Book book,
String exporterType) |
static String |
suggestFileName(Book book)
Gets suggested file name of a book
|
static String |
suggestFileName(String fileName,
Book book,
BookRepository rep)
Gets suggested file name of a book
|
static String |
suggestPdfName(Book book) |
public static String appendExtension(String fileName, Book book)
public static String suggestFileName(String fileName, Book book, BookRepository rep)
public static File getWorkingFolder()
public static File saveBookToWorkingFolder(Book book) throws IOException
IOException
public static File saveBookToWorkingFolder(Book book, String exporterType) throws IOException
IOException
Copyright © 2020. All rights reserved.