momelog
Interface Configurable

All Known Implementing Classes:
LogCanvas, LogFile, PatternFormatter

public interface Configurable

Interface that every class designed to be configured from character sequence should implement. Contains the only method configure(char[], int, int) intended to configures instance from specified character sequence.

Version:
1.0
Author:
Sergio Morozov

Method Summary
 void configure(char[] lines, int offset, int length)
          Configures instance from specified character sequence.
 

Method Detail

configure

void configure(char[] lines,
               int offset,
               int length)
Configures instance from specified character sequence. Character sequence is specified by char array. Position of first character and length of sequence are specified by offset and length parameters respectively. The following must be satisfied 0 <= offset <= <char array length> and length >= 0. If offset + length is greater than char array length, length is shorten to designate valid sequence.

Parameters:
lines - char array containing character sequence.
offset - position of the first character of sequence in given array.
length - length of the sequence in characters.
Throws:
IllegalArgumentException - if length is negative.
ArrayIndexOutOfBoundsException - if offset is greater than char array length or negative.
Since:
1.0