mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-12 22:38:49 +00:00
fix parsing of journey attributes with Switzerland
git-svn-id: https://public-transport-enabler.googlecode.com/svn/trunk@377 0924bc21-9374-b0fa-ee44-9ff1593b38f0
This commit is contained in:
parent
bf182039ac
commit
8ee14bc4b7
2 changed files with 10 additions and 3 deletions
|
@ -307,6 +307,13 @@ public final class ParserUtils
|
|||
System.out.println("group " + i + ":" + (m.group(i) != null ? "'" + m.group(i) + "'" : "null"));
|
||||
}
|
||||
|
||||
public static void printXml(final CharSequence xml)
|
||||
{
|
||||
final Matcher m = Pattern.compile("(<.{80}.*?>)\\s*").matcher(xml);
|
||||
while (m.find())
|
||||
System.out.println(m.group(1));
|
||||
}
|
||||
|
||||
public static String urlEncode(final String str)
|
||||
{
|
||||
try
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue