1 import java.util.Scanner;
\r
3 /*******************************************************************************
\r
4 * Copyright (c) 2007, 2011 Association for Decentralized Information Management in
\r
6 * All rights reserved. This program and the accompanying materials
\r
7 * are made available under the terms of the Eclipse Public License v1.0
\r
8 * which accompanies this distribution, and is available at
\r
9 * http://www.eclipse.org/legal/epl-v10.html
\r
12 * VTT Technical Research Centre of Finland - initial API and implementation
\r
13 *******************************************************************************/
\r
15 public class TestRVI {
\r
18 public static void main(String[] args) {
\r
19 String str = "r34534545/r45345/HELLO#VAR";
\r
20 Scanner s = new Scanner(str);
\r
21 s.useDelimiter("[/#]");
\r
22 while (s.hasNext()) {
\r
23 System.out.println(s.next());
\r