net.sf.vcard4j.parser
Class EscapableStringTokenizer
java.lang.Object
net.sf.vcard4j.parser.EscapableStringTokenizer
- All Implemented Interfaces:
- java.util.Iterator
- public class EscapableStringTokenizer
- extends java.lang.Object
- implements java.util.Iterator
StringTokenizer aware of escape sequences.
- Author:
- Yann Duponchel
VCard4J is a VCard (RFC 2426) parser offering a Java API.
Copyright (C) 2002-2003 Yann Duponchel. All rights reserved.
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Method Summary |
static java.lang.String |
escape(java.lang.String str)
This method escapes a String but it is never used. |
boolean |
hasNext()
|
java.lang.Object |
next()
|
java.lang.String |
nextToken()
|
void |
remove()
Method not supported. |
static java.lang.String |
unescape(java.lang.String str)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EscapableStringTokenizer
public EscapableStringTokenizer(java.lang.String str,
char delimiter)
EscapableStringTokenizer
public EscapableStringTokenizer(java.lang.String str,
char delimiter,
boolean unescape)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator
next
public java.lang.Object next()
- Specified by:
next in interface java.util.Iterator
nextToken
public java.lang.String nextToken()
remove
public void remove()
- Method not supported.
- Specified by:
remove in interface java.util.Iterator
unescape
public static java.lang.String unescape(java.lang.String str)
escape
public static java.lang.String escape(java.lang.String str)
- This method escapes a String but it is never used.