Open Business Objects for EDI
v3.6.0

com.americancoders.edi
Interface IDataTokenizer

All Known Implementing Classes:
BinaryTokenizer, DataTokenizer, ReaderTokenizer

public interface IDataTokenizer

interface for DataTokenizers

OBOE - Open Business Objects for EDI

Part of the OBOE Basic Extended Package
An EDI and XML Translator Written In Java
Copyright 1998-2009 - American Coders, LTD - Raleigh NC USA
All rights reserved
American Coders, Ltd
P. O. Box 97462
Raleigh, NC 27624 USA
1-919-846-2014
http://www.americancoders.com

Version:
3.6.0
Author:
Joe McVerry - American Coders, Ltd.

Method Summary
 int countTokens()
          returns the number of tokens left to process
 int getPositionInStream()
          returns the byte offset position of the token in the overall input stream
 java.lang.String getTokenAt(int pos)
          gets the token in tokenized string at a specifiec position
 boolean hasMoreElements()
          tests if more tokens are available
 java.lang.String nextToken()
          gets the next token in tokenized string
 void setPositionInStream(int positionInStream)
          sets the byte offset position of the token in the input stream
 

Method Detail

nextToken

public java.lang.String nextToken()
gets the next token in tokenized string

Returns:
String

getTokenAt

public java.lang.String getTokenAt(int pos)
gets the token in tokenized string at a specifiec position

Parameters:
pos - int position, if < 0 or > the total returns null
Returns:
String

hasMoreElements

public boolean hasMoreElements()
tests if more tokens are available

Returns:
true or false

countTokens

public int countTokens()
returns the number of tokens left to process

Returns:
int

getPositionInStream

public int getPositionInStream()
returns the byte offset position of the token in the overall input stream

Returns:
int

setPositionInStream

public void setPositionInStream(int positionInStream)
sets the byte offset position of the token in the input stream


Open Business Objects for EDI
v3.6.0


OBOE is a trademark or registered trademark of American Coders, Ltd. in the US and other countries.
Copyright 1999-2004 American Coders, Ltd.
POB 97462
Raleigh NC 27624 USA
All Rights Reserved.