Package com.sun.j3d.loaders

Examples of com.sun.j3d.loaders.IncorrectFormatException


/*     */     throws ParsingErrorException, IncorrectFormatException
/*     */   {
/* 115 */     debugOutputLn(1, "getMotion()");
/* 116 */     this.numChannels = ((int)getNumber(st));
/* 117 */     if (this.numChannels != 9) {
/* 118 */       throw new IncorrectFormatException(J3dUtilsI18N.getString("LwsMotion0"));
/*     */     }
/*     */
/* 121 */     debugOutputLn(8, "got channels");
/*     */
/* 123 */     this.numFrames = ((int)getNumber(st));
View Full Code Here


/*     */         }
/*     */         catch (IOException e) {
/* 204 */           throw new ParsingErrorException(e.getMessage());
/*     */         }
/* 206 */         if (fieldLength != 4) {
/* 207 */           throw new IncorrectFormatException(J3dUtilsI18N.getString("LwoSurface0"));
/*     */         }
/*     */       }
/* 210 */       else if (tokenString.equals("FLAG")) {
/* 211 */         debugOutputLn(8, "  FLAG");
/* 212 */         this.theReader.skipLength(fieldLength);
/*     */       }
/* 214 */       else if (tokenString.equals("VLUM")) {
/* 215 */         debugOutputLn(8, "  VLUM");
/* 216 */         this.luminosity = this.theReader.getFloat();
/* 217 */         gotLuminosityFloat = true;
/*     */       }
/* 219 */       else if (tokenString.equals("LUMI")) {
/* 220 */         debugOutputLn(8, "  LUMI");
/* 221 */         if (gotLuminosityFloat)
/* 222 */           this.theReader.skipLength(fieldLength);
/*     */         else
/* 224 */           this.luminosity = (this.theReader.getShortInt() / 255.0F);
/*     */       }
/* 226 */       else if (tokenString.equals("VDIF")) {
/* 227 */         debugOutputLn(8, "  VDIF");
/* 228 */         if (fieldLength != 4)
/* 229 */           throw new IncorrectFormatException("VDIF problem");
/* 230 */         this.diffuse = this.theReader.getFloat();
/* 231 */         gotDiffuseFloat = true;
/* 232 */         debugOutputLn(2, "diff = " + this.diffuse);
/*     */       }
/* 234 */       else if (tokenString.equals("DIFF")) {
View Full Code Here

/* 328 */         fileLength = length + 4;
/* 329 */         length = 0;
/* 330 */         tokenString = this.theReader.getToken();
/* 331 */         lengthRead += 4;
/* 332 */         if (!tokenString.equals("LWOB")) {
/* 333 */           throw new IncorrectFormatException("File not of FORM-length-LWOB format");
/*     */         }
/*     */       }
/* 336 */       else if (tokenString.equals("PNTS"))
/*     */       {
/* 338 */         getPnts(length);
View Full Code Here

TOP

Related Classes of com.sun.j3d.loaders.IncorrectFormatException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.