• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

searching for DVDDbAdapter source code

 
Bob Chandler
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,
does anyone have a copy of the actual source code for DVDDbAdapter
class (Max Habibi study guide example project)?
It's the only one that downloads from apress.com as a class file and
I would really like to take a look at the source.
ta,
Bob
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have no idea if I am right, but isn't the source code written in the book?
Mark
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bob

Originally posted by Bob Chandler:
Hey guys,
does anyone have a copy of the actual source code for DVDDbAdapter
class (Max Habibi study guide example project)?
It's the only one that downloads from apress.com as a class file and
I would really like to take a look at the source.
ta,
Bob

Good Luck.
[Andrew: removed code - see below]
[ March 31, 2004: Message edited by: Andrew Monkhouse ]
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11914
209
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bob,
I suggest you go to the download page and download the code again.
You will see on the download page the following notice:

The source code for this book has been restricted at the request of the author.

That being the case, I think it would be unethical for us to provide code here. As Mark mentions, the code is in the book.
When I originally downloaded, that source file was in the distribution (which is how I imagine Satish got a copy). I just downloaded it again now to check, and it is still in there:

So it is all available when you download it.
Regards, Andrew
 
Bob Chandler
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all of your responses...
I have no idea if I am right, but isn't the source code written in the book?

Mark and Andrew, there is a snippet of DVDDbAdapter in the book, but I wanted to view the class in it's entirity
I made a lil' mistake when I viewed the downloaded file, though....
A cursory glance had me thinking in was in bytecode format...you'd thinmk the .java file extension would be a dead giveaway :roll:
turns out it is in fact the source file in question, but without any structured format (i.e. spaces appear as square boxes and there's no white space visible - just a jumble)
I will endeavour to re-format it by hand later - but thank you guys for all your helpful comments
Foolish Bob
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11914
209
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bob,
Originally posted by Bob Chandler:
it is in fact the source file in question, but without any structured format (i.e. spaces appear as square boxes and there's no white space visible - just a jumble)

Ahhh - it is not in Microsoft DOS text format!
Just confirmed this by looking at the files DVDDbAdapter.java & DVD.java:

File DVD.java termiates each line with 0x0d 0x0a
File DVDDbAdapter.java terminates each line with 0x0a
WordPad.exe and Write.exe will happily read the file and handle the 0x0a as the line terminator.
Or you could write a simple Java program to go through the file changing each instance of 0x0a into 0x0d 0x0a pairs .
Regards
Andrew
 
Bob Chandler
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andrew,
I have much to learn (chuckle)....
once again, thanks for the tips - and yes, I will attempt
to write the conversion code.
Bob
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bob,
Thanks for bringing this to my attention. I'll get it corrected.
All best,
M
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic