Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tools.ant.filters
Class TokenFilter.StringTokenizer

    java.lang.Object
      |
      +--org.apache.tools.ant.ProjectComponent
            |
            +--org.apache.tools.ant.filters.TokenFilter.StringTokenizer

All Implemented Interfaces:
  Tokenizer

Enclosing class:
  TokenFilter

public static class TokenFilter.StringTokenizer
extends ProjectComponent
implements Tokenizer

class to tokenize the input as areas separated by white space, or by a specified list of delim characters. Behaves like java.util.StringTokenizer. if the stream starts with delim characters, the first token will be an empty string (unless the treat tokens as delims flag is set).

Field Summary

Fields inherited from class org.apache.tools.ant.ProjectComponent
`project`

Constructor Summary
`TokenFilter.StringTokenizer()`

Method Summary
`java.lang.String` | `getPostToken()` return the string between tokens, after the previous token.
`java.lang.String` | `getToken(java.io.Reader in)` find and return the next token
`void` | `setDelims(java.lang.String delims)` attribute delims - the delimiter characters
`void` | `setDelimsAreTokens(boolean delimsAreTokens)` attribute delimsaretokens - treat delimiters as separate tokens.
`void` | `setIncludeDelims(boolean includeDelims)` attribute includedelims - treat delimiters as part of the token.
`void` | `setSuppressDelims(boolean suppressDelims)` attribute suppressdelims - suppress delimiters.

Methods inherited from class org.apache.tools.ant.ProjectComponent
`getProject, log, log, setProject`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### TokenFilter.StringTokenizer

    public TokenFilter.StringTokenizer()

Method Detail

### setDelims

    public void setDelims(java.lang.String delims)

  attribute delims - the delimiter characters

  Parameters:
    `delims` - a string containing the delimiter characters

### setDelimsAreTokens

    public void setDelimsAreTokens(boolean delimsAreTokens)

  attribute delimsaretokens - treat delimiters as separate tokens.

  Parameters:
    `delimsAreTokens` - true if delimiters are to be separate

### setSuppressDelims

    public void setSuppressDelims(boolean suppressDelims)

  attribute suppressdelims - suppress delimiters. default - false

  Parameters:
    `suppressDelims` - if true do not report delimiters

### setIncludeDelims

    public void setIncludeDelims(boolean includeDelims)

  attribute includedelims - treat delimiters as part of the token. default - false

  Parameters:
    `includeDelims` - if true add delimiters to the token

### getToken

    public java.lang.String getToken(java.io.Reader in)
                              throws java.io.IOException

  find and return the next token

  Specified by:
    `getToken` in interface `Tokenizer`
  Parameters:
    `in` - the input stream
  Returns:
    the token
  Throws:
    `java.io.IOException` - if an error occurs reading

### getPostToken

    public java.lang.String getPostToken()

  Description copied from interface: `Tokenizer`
  return the string between tokens, after the previous token.

  Specified by:
    `getPostToken` in interface `Tokenizer`
  Returns:
    the intratoken string

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.