protected void write ( DataOutput out , Charset charset ) throws IOException { // Field Name out . write ( this . name . getBytes ( charset ) ) ; /* 0-10 */ out . write ( new byte [ 11 - this . name . length ( ) ] ) ; // data type out . writeByte ( this . type . getCode ( ) ) ; /* 11 */ out . writeInt ( 0x00 ) ; /* 12-15 */ out . writeByte ( this . length ) ; /* 16 */ out . writeByte ( this . decimalCount ) ; /* 17 */ out . writeShort ( ( short ) 0x00 ) ; /* 18-19 */ out . writeByte ( ( byte ) 0x00 ) ; /* 20 */ out . writeShort ( ( short ) 0x00 ) ; /* 21-22 */ out . writeByte ( ( byte ) 0x00 ) ; /* 23 */ out . write ( new byte [ 7 ] ) ; /* 24-30 */ out . writeByte ( ( byte ) 0x00 ) ; /* 31 */ }
Writes the content of DBFField object into the stream as per DBF format specifications .