Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*    */ package com.sun.xml.bind.v2.runtime.unmarshaller;
 /*    */ 
 /*    */ import java.io.IOException;
 /*    */ 
 /*    */ public class IntData extends Pcdata
 /*    */ {
 /*    */   private int data;
/*    */   private int length;
/* 71 */   private static final int[] sizeTable = { 9, 99, 999, 9999, 99999, 999999, 9999999, 99999999, 999999999, 2147483647 };
/*    */ 
/*    */   public void reset(int i)
/*    */   {
/* 64 */     this. = i;
/* 65 */     if (i == -2147483648)
/* 66 */       this. = 11;
/*    */     else
/* 68 */       this. = (i < 0 ? stringSizeOfInt(-i) + 1 : stringSizeOfInt(i));
/*    */   }
/*    */ 
/*    */   private static int stringSizeOfInt(int x)
/*    */   {
/* 76 */     for (int i = 0; ; i++)
/* 77 */       if (x <= [i])
/* 78 */         return i + 1;
/*    */   }
/*    */ 
/*    */   public String toString() {
/* 82 */     return String.valueOf(this.);
/*    */   }
/*    */ 
/*    */   public int length()
/*    */   {
/* 87 */     return this.;
/*    */   }
/*    */ 
/*    */   public char charAt(int index) {
/* 91 */     return toString().charAt(index);
/*    */   }
/*    */ 
/*    */   public CharSequence subSequence(int startint end) {
/* 95 */     return toString().substring(startend);
/*    */   }
/*    */ 
/*    */   public void writeTo(UTF8XmlOutput outputthrows IOException {
/* 99 */     output.text(this.);
/*    */   }
/*    */ }
/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
 * Qualified Name:     com.sun.xml.bind.v2.runtime.unmarshaller.IntData
 * JD-Core Version:    0.6.0
 */
New to GrepCode? Check out our FAQ X