import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLConnection;
-import java.nio.file.FileAlreadyExistsException;
import java.util.Date;
import java.util.Map;
import java.util.zip.GZIPInputStream;
* @param uniqueID
* a unique ID for this resource
*
- * @return the resulting {@link FileAlreadyExistsException}
+ * @return the resulting {@link File}
*
* @throws IOException
* in case of I/O error
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
-import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import be.nikiroo.fanfix.data.Chapter;
import be.nikiroo.fanfix.data.MetaData;
import be.nikiroo.fanfix.data.Paragraph;
-import be.nikiroo.fanfix.data.Story;
import be.nikiroo.fanfix.data.Paragraph.ParagraphType;
+import be.nikiroo.fanfix.data.Story;
import be.nikiroo.utils.StringUtils;
/**
"\n* * *\n");
}
- InputStream in = new ByteArrayInputStream(
- content.getBytes(StandardCharsets.UTF_8));
+ InputStream in = new ByteArrayInputStream(content.getBytes("UTF-8"));
try {
@SuppressWarnings("resource")
Scanner scan = new Scanner(in, "UTF-8");