• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

can I use NIO?

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello everybody!
can someone tell me that if I can use NIO in my project.
my assignment is urlybird1.1.3,I want to use MappedByteBuffer and FileLock,these point all in package nio.
I found that someone said sun banned nio using?
what should I do?

thanks
 
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Daming,

I found that someone said sun banned nio using?


Could you be more precise, please? Who and where? It could help us replying if you gave us the links to the threads/posts you're referring to.
If you don't know how to include such links in your posts, it's explained here (UBB codes description).

Now about your question, it really depends on your own assignment: if NIO is not explicitly disallowed in your instructions, you can use it.

Regards,

Phil.
 
Ranch Hand
Posts: 531
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by daming wang:
hello everybody!
can someone tell me that if I can use NIO in my project.
my assignment is urlybird1.1.3,I want to use MappedByteBuffer and FileLock,these point all in package nio.
I found that someone said sun banned nio using?
what should I do?

thanks



I think NIO is not necessary to complete the assignment so I am not using it. But that's just my personal opinion.
 
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This still appears on the Sun Certified Java Developer Site:

The following APIs and facilities may not be used:
# Enterprise JavaBeans
# Servlets, JSP technology, or any other web-oriented APIs
# NIO, the New IO facilities
# Java DataBase Connectivity (JDBC) and SQL
# Java IDL API and CORBA
# Third party software libraries or tools (such as browsers)
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that the thread "We are allowed to use NIO" clearly confirms what I wrote above: if NIO is not explicitly disallowed in your own instructions, you can use it.

Regards,

Phil.
 
daming wang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Maquet,because the class I want use in my project is MappedByteBuffer.It is os depent.some thread in the forum said it is prohibit.

Is it right?
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Using MappedByteBuffer in your project is not a good idea indeed, for the reasons you explain yourself.
But it has nothing to do with the fact that NIO would be prohibited or not, depending on your detailed instructions. Check them carefully!

Regards,

Phil.

PS: Please call me Phil, next time.
 
daming wang
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thank you,phil!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic