Java Video Tutorial 33

preview_player
Показать описание

I completely cover reading and writing Java Binary Streams.

I cover everything you need to know including DataOutputStream, FileOutputStream, BufferedOutputStream, all of the reading and writing primitive type methods and more.
Рекомендации по теме
Комментарии
Автор

You're very welcome :)

The DataOutputStream is used to write primitive data to the file.
The BufferedOutputStream gathers all the data and then writes it all at one time which speeds up the program

derekbanas
Автор

I have been following the series on these days of Covid confinement and I can only say that it's great that you have gone through the effort of recording all these walk-throughs in such a neat and explanatory way. Very insightful and detailed videos. Thanks for it.

newaivn
Автор

I like to make overly descriptive variable names. Everyone has opinions on what works best for them and I'm always welcome to hear their ideas

derekbanas
Автор

You're very welcome :) I am planning a major networking video series right now.

derekbanas
Автор

To make sure the decimals are accurate you would save them as whole numbers. There are also very accurate data types provided by outside libraries

derekbanas
Автор

You're very welcome :) I'm glad you are enjoying them!

derekbanas
Автор

Are you having this problem with my code? What is printing? Do you get any errors?

derekbanas
Автор

Thanks for another helpful video! Is there a way to write and read the contents in format of array on a file, by using dataoutput and datainput stream?

curiousenough
Автор

Again, great video!
Thank you Derek!!!

OgnianBorisov
Автор

Can I use the "writeChars" method instead of the "writeUTF" method?? Whats the difference between those two?

fabiang.
Автор

The usual flawless quality and clarity :) Can't tell you enough how much i appreciate your videos!
I have a question though. Do you know a source(maybe your own videos), where Binary Data Formats are explained, how they are designed, and used, read etc.
I really like the idea to be able to do custom formats in a crossplatform manner, just finding proper explanation how it is done 'properly', meaning by industry standards, i.e norms. So i don't learn any crap. Basically 'the way to do it'.
I would be very, very thankfull :)
Greetings and all the best to you ! <3<3<3

ronanderson
Автор

when i use binary stream method to write onto the file, It is not completely showing the data when I open it with Notepad.It is fine when I use PrintWriter.Can you please tell why is it so?

nagallapruthvi
Автор

random funky observation/ideathing :
If Derek seems too over-powered as he goes along,
you can turn down the volume of his voice, making him appear 'smaller' in a sense.

This may force you to pay a bit more close attention cuz the sound is lower, but is way preferable to sitting there and just getting rolled over by his fast pace at the higher and 'bigger' thus kinda 'instinct-like' more 'intimidating' volume level.. :)

I just tried it and I've done a lot of the vids and watched almost all of them 1 or 2 times at least, and right now it seems like I'm onto something, altho it may just be temporary / caused by other chaos-butterflies (stuff).

so basically
'drag him down to your level' by turning down the volume
then, as you get comfortable, turn the volume back up, to make him 'drag you up to his level' .. :D :D

aysikl
Автор

no problem with code.but when I open it with notepad instead of giving numbers it is showing some scripts(like $, %..etc)?

nagallapruthvi
Автор

Would you be able to make networking video about UDP and TCP, and not use chat client like most of the youtube tutorial on these two .
once again thank you for your videos

Cybersix
Автор

Extremely helpful tutorials, I could never thank you enough. 

Just one advise though to improve your tutorials, it would be great if you went through the code again at the end, like a quick review of what everything does and in which order. It's your call, but I believe the tutorials would be better this way. But hey, just my opinion. 

Arcthoor
Автор

Isn't there any other way to check EOF rather waiting until an EOFException occurs ?

I don't think it is a correct way to end the "while" loop (wait until exception is thrown, and then in a catch block update "eof", which is after the fact). 
This is something like "I known that something wrong is going to happen at exact time, but not going to do anything until it happens"

javageek
Автор

Hey Derek! I've been going through your videos and they've been amazing. Thank you so much for all your effort! I was going through this video and came across a problem I haven't been able to get by.



On this piece of code: for(Customer person : customers) {
createCustomers(customers : custOutput);



it tells me the target of this expression must be a functional interface.. I'm rather confused. Could you explain?

MrSloan
Автор

First of all i want to thank you for these tutorials. Simple and easy to understand.

When do we use Data Streams? Isnt it more convinient to use the printWriter etc?

I just want to understand a use case. Thanks in advance

nibinpsan
Автор

Hi Dereck, thanks for the videos!! I have a question, how long it takes to undersdant the main things of java and to be able to be hired for a company or somthinh like that?
Sorry for my english ;D

gabrielurtado