mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 00:09:55 +00:00
specify encodings as Charset rather than String
This commit is contained in:
parent
665ee2730d
commit
e781abb3c7
23 changed files with 71 additions and 81 deletions
|
@ -17,6 +17,8 @@
|
|||
|
||||
package de.schildbach.pte;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
import de.schildbach.pte.dto.Point;
|
||||
import de.schildbach.pte.dto.Style;
|
||||
|
||||
|
@ -25,6 +27,9 @@ import de.schildbach.pte.dto.Style;
|
|||
*/
|
||||
public abstract class AbstractNetworkProvider implements NetworkProvider
|
||||
{
|
||||
protected static final Charset UTF_8 = Charset.forName("UTF-8");
|
||||
protected static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
|
||||
|
||||
public Style lineStyle(final String line)
|
||||
{
|
||||
if (line.length() == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue