- Timestamp:
- 11/27/09 09:31:48 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
apps/blackberry/branches/1.5/blackberry/src/org/telnic/blackberry/dns/DNSInputStream.java
r566 r587 38 38 * 39 39 * @author John Cundall, Ben Dowling, Jonathan Maycock 40 * @version $Id: DNSInputStream.java,v 1. 19 2009/11/06 11:55:58jm2 Exp $40 * @version $Id: DNSInputStream.java,v 1.20 2009/11/27 09:10:09 jm2 Exp $ 41 41 */ 42 42 public class DNSInputStream extends ByteArrayInputStream … … 427 427 { 428 428 position = 0; 429 finalString txtStr = readString();429 String txtStr = readString(); 430 430 431 431 if (txtStr.trim().equals( KEYWORD )) … … 466 466 467 467 if (type.equals( DOMAIN_DISPLAY )) 468 { 469 return new DNSTxtDDSResourceRecord( ttl, txtStr, readString(), version.equals( "1" ) ); 468 { 469 String dds = readString(); 470 while (position < rrBytes) 471 { 472 readString(); 473 } 474 return new DNSTxtDDSResourceRecord( ttl, txtStr, dds, version.equals( "1" ) ); 470 475 } 471 476 else if (type.equals( TSM_PRIVATE_DATA_AVAILABLE )) … … 538 543 else 539 544 { 545 while (position < rrBytes) 546 { 547 txtStr += readString(); 548 } 540 549 return new DNSTxtHeaderResourceRecord( ttl, txtStr ); 541 550 }








