Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8061769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:26:57+00:00 2026-06-05T10:26:57+00:00

am implementing a TFTP (RFC 1350) client and server in java. Three modes of

  • 0

am implementing a TFTP (RFC 1350) client and server in java.

Three modes of transfer are currently supported: netascii (This is
ascii as defined in “USA Standard Code for Information Interchange”
[1] with the modifications specified in “Telnet Protocol
Specification” [3].) Note that it is 8 bit ascii. The term
“netascii” will be used throughout this document to mean this
particular version of ascii.);

What does this mean in Java terms? and how can read/write to a file, or convert a String, in this mode?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:26:59+00:00Added an answer on June 5, 2026 at 10:26 am

    netascii seems to be defined as an 8-bit extension of ASCII, but restricted to basic ASCII ranging from 0x20 to 0x7F, plus 8 control characters (see page 9): 0x00 (NUL), 0x10 (LF), 0x13 (CR), 0x07 (BEL), 0x08 (BS), 0x09 (HT), 0x11 (VT) and 0x12 (FF).

    Besides making sure your output is pure ASCII only within this range, another requirement of netascii is that newlines are always CRLF, so you must convert accordingly. Any CR can only be followed either by an LF or a NUL.

    You can use Apache Commons to handle this for you, but if you want to roll out your own implementation, just use the US-ASCII encoding in Java, then perform extra checks to make sure you don’t have any non allowed control characters from the 0x00–0x20 range and finally ensure that your newlines are CRLFs rather than just LFs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im implementing NFS and almoste done but the RFC section 3.3.8 says this in
When implementing a client/server solutions, one of the questions you always need to answer
implementing publishActivity in PHP using the REST API using this code: $activity = array(
Im implementing a pool billiard game in Java and it all works fine. It
Implementing the basic algorithm using last array as a pivot in Java, is it
When implementing move constructors and move assignment operators, one often writes code like this:
Implementing Kings' Corners (glorified multiplayer Solitaire) in Java. I'm trying to allow a player
Implementing/handling idempotency in c# with Jolivers EventStore. Does this mean just taking care of
i implementing Java WebService with JAX-WS and now need to secure my webservice with
implementing code for customized mini(less squares, less pieces ) chess board in java or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.