Servertec getChars( )
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Reference Manual
Conventions
Scriptlets
Data Types
Constants
Variables
Procedures
Operators
Statements
Objects
Array
Config
Context
Cookie
Date
Enumeration
File
FileDescriptor
Hashtable
Internet
IO
JDBC
Number
Object
Properties
Random
Request
RequestDispatcher
Response
Session
SqlTypes
Stack
StreamTokenizer
String
StringBuffer
append( )
capacity( )
charAt( )
ensureCapacity( )
getChars( )
insert( )
length( )
reverse( )
setCharAt( )
setLength( )
StringBuffer( )
toString( )

StringTokenizer
System
Vector

Wrappers
Servlet
Server Pages
Preprocessor
Executable
Samples
Legal
Contact Us

 

Returns a new character array object containing the specified string buffer.

Syntax

    getChars( stringbuffer , number1 , number2 , chararray , number3 )
    stringbuffer.getChars( number1 , number2 , chararray , number3 )

Parameters

    stringbuffer the stringbuffer object to copy from.
    number1 the starting offset into the stringbuffer object.
    number2 the ending offset into the stringbuffer object.
    chararray the character array to copy into.
    number3 the starting offset into the chararray object.

Returns

    none

Notes

    The last character to copy is at ending offset - 1.

    Copies ending offset - starting offset characters from source stringbuffer object.

Example

    sb.getChars( 0 , sb.length( ), charArray, 0 )
    
 top of page
Copyright © 1998-2005 Servertec. All rights reserved.
Privacy Statement.
Last Modified: Sun Sep 04 14:56:08 EDT 2005