uk.ac.ebi.adfconverter.common.data
Class DataBuffer

java.lang.Object
  extended byuk.ac.ebi.adfconverter.common.data.DataBuffer

public class DataBuffer
extends java.lang.Object

ADF MAGE-TOOL - MicroArray Informatics Team / European Bioinformatics Institute (EBI) ArrayExpress License: ============================================================================== Copyright (c) 2002 The European Bioinformatics Institute. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The name ArrayExpress must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact arrayexpress@ebi.ac.uk 4. Products derived from this software may not be called "ArrayExpress" nor may "ArrayExpress" appear in their names without prior written permission of the ArrayExpress developers. 5. Redistributions of any form whatsoever must retain the following acknowledgment: "This product includes software developed by ArrayExpress (http://www.ebi.ac.uk/arrayexpress)" THIS SOFTWARE IS PROVIDED BY THE ARRAYEXPRESS GROUP ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE ARRAYEXPRESS GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The European Bioinformatics Institute may publish revised and/or new versions of this license with new releases of ArrayExpress software. ==============================================================================

Since:
17 sept. 2004
Version:
1 from per Likja, 2
Author:
Pierre MARGUERITE
See Also:
ADFConverterLogger, ADFConverterLoggerImpl, DataBufferPool, based on the MAGEMLString class from Per lilja

Constructor Summary
DataBuffer()
          Constructor of DataBuffer class sets by default internalString to "", empty string
DataBuffer(java.lang.String inS)
          Constructor with a given string
 
Method Summary
 void append(char c)
          Appends a char to the current one Add the char og the databuffer to the end of the current one
 void append(char[] c)
          Appends a char array to the current one Add the char array og the databuffer to the end of the current one
 void append(DataBuffer buff)
          Appends the DataBuffer to the current one Add the String og the databuffer to the end of the current one
 void append(java.lang.String text)
          Appends the DataBuffer to the current one Add the String og the databuffer to the end of the current one
 void clear()
          Clears the current object
 DataBuffer concat(DataBuffer buff)
          Concats the current DataBuffer with another databuffer
 boolean equals(java.lang.Object o)
          Compares the current string to an object must be a DataBuffer or a String Compare the associated internal String
 boolean equalsIgnoreCase(java.lang.Object o)
          Compares the current string to an object must be a DataBuffer or a String Compare the associated internal String Case insensitive
 java.lang.String getString()
          Retrieves the internalString attribut
 int length()
          Retrieves the length of the DataBuffer
 void setString(java.lang.String inS)
          Create a new DataBuffer
 char[] toCharArray()
          retrieves the object as char array
 DataBuffer toLowerCase()
          Retrieves the databuffer in lower case
 java.lang.String toString()
          Retrieves the DataBuffer as String
 DataBuffer toUpperCase()
          Retrieves the databuffer in upper case
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataBuffer

public DataBuffer()
Constructor of DataBuffer class sets by default internalString to "", empty string


DataBuffer

public DataBuffer(java.lang.String inS)
Constructor with a given string

Parameters:
inS - the string associated to the object
Method Detail

append

public void append(char c)
Appends a char to the current one Add the char og the databuffer to the end of the current one

Parameters:
c - the buffer to append

append

public void append(char[] c)
Appends a char array to the current one Add the char array og the databuffer to the end of the current one

Parameters:
c - the buffer to append

append

public void append(DataBuffer buff)
Appends the DataBuffer to the current one Add the String og the databuffer to the end of the current one

Parameters:
buff - the buffer to append

append

public void append(java.lang.String text)
Appends the DataBuffer to the current one Add the String og the databuffer to the end of the current one

Parameters:
text - the string to append add the end of the DataBuffer

clear

public void clear()
Clears the current object


concat

public DataBuffer concat(DataBuffer buff)
Concats the current DataBuffer with another databuffer

Parameters:
buff - the DataBuffer to concat with
Returns:
a DataBuffer representing

equals

public boolean equals(java.lang.Object o)
Compares the current string to an object must be a DataBuffer or a String Compare the associated internal String

Parameters:
o - the object to compare with
Returns:
true if the object o is equals to the current object

equalsIgnoreCase

public boolean equalsIgnoreCase(java.lang.Object o)
Compares the current string to an object must be a DataBuffer or a String Compare the associated internal String Case insensitive

Parameters:
o - the object to compare with
Returns:
true if the object o is equals to the current object

getString

public java.lang.String getString()
Retrieves the internalString attribut

Returns:
Returns the internalString.

length

public int length()
Retrieves the length of the DataBuffer

Returns:
the length of the DataBuffer

setString

public void setString(java.lang.String inS)
Create a new DataBuffer

Parameters:
inS - the String representing the DataBuffer

toCharArray

public char[] toCharArray()
retrieves the object as char array

Returns:
an char array representing the current object.

toLowerCase

public DataBuffer toLowerCase()
Retrieves the databuffer in lower case

Returns:
a databuffer representing the current object as lowercase

toString

public java.lang.String toString()
Retrieves the DataBuffer as String

Returns:
the String representing the current DataBuffer Object

toUpperCase

public DataBuffer toUpperCase()
Retrieves the databuffer in upper case

Returns:
a databuffer representing the current object as uppercase


European Bioinformatics InstituteMicroarray Informatics Team