Code example for ObjectOutputStream

Methods: writeByte

0
/*     */   } 
/*     */  
/*     */   private void writeObject(ObjectOutputStream paramObjectOutputStream)
/*     */     throws IOException 
/*     */   { 
/* 138 */     paramObjectOutputStream.writeByte(this.typeId);
/* 139 */     paramObjectOutputStream.writeByte(this.precision);
/* 140 */     paramObjectOutputStream.writeByte(this.scale);
/*     */   } 
/*     */  
/*     */   protected Object toObject(byte[] paramArrayOfByte, int paramInt, Map paramMap)
/*     */     throws SQLException 
/*     */   { 
/* 146 */     if ((paramArrayOfByte == null) || (paramArrayOfByte.length == 0)) {
/* 147 */       return null; 
/*     */     } 
/* 149 */     switch (paramInt)
/*     */     { 
/*     */     case 1: 
/* 153 */       if (paramArrayOfByte.length == 5)
/* 154 */         return new INTERVALYM(paramArrayOfByte);