How to do low-level stuff?

How do you do the same thing in Java?
C++ syntax:
1) DWORD
2) WORD firstbit : 1
3) Shifting and Bitwise And and Or
4) Binary Read and Write
Or any good texts that cover all of these topics and the similar stuff?
And Does Java support operator overload for geometrical/spatial vectors etc?
Thanks
Jack
Edited by: luckiejacky on Jan 29, 2008 12:32 AM
Edited by: luckiejacky on Jan 29, 2008 12:32 AM

luckiejacky wrote:
How do you do the same thing in Java?
C++ syntax:
1) DWORDuse int
2) WORD firstbit : 1use short and set the bit that you want to set.
3) Shifting and Bitwise And and OrSame as in C++
4) Binary Read and WriteUse The Stream classes.
Kaj

Similar Messages

  • How to create lower-level item for delivery with TO confirmation.

    Hi Gurus,
    I am writing batch to the delivery item after confirming the Transfer Order. According to the TO quantity, SAP splits the items and makes a "Lower-Level" item.
    SAP does that splitting if the TO quantity is lower that the delivery item quantity.
    What i want is that, i need SAP to create a lower-level item even if the TO corresponds the delivery quantity. 
    Is there a customizing for that?

    That is a standard behavior where the line split occurs in the delivery when the delivery quantity is not equal to picked quantity. Since, the header line indicates the remainder of the quantity in case of short pick. This behavior also occurs when you are writing multiple batches despite the delivery quantity equals to the picking quantity.
    Essentially, you'd see a single line when there a full pick and a single batch. If you still want to get this split then you can pick the batch in the delivery via 'batch split' (so that the line item is created) and then create a TO.

  • Low level format

    how can i low level format the hard drive from my satellite m108 laptop

    "True" low level formatting went out years ago (except for some possible HDD factory processes), though there are plenty of shareware utilities still out there that use this term, but are really just performing disk wipes. Is this what are you attempting to do? You can do what's referred to as a Department of Defense (DOD) wipe (three 0/1 passes over every sector and track) with Symantec's GDISK utility or even use Microsoft's DISKPART to execute a similar type wipe.
    Rick...

  • How to disable Wifi and Network access in low level setting for security ?

    Hi
    New to here
    One of our final customer bought imac last months. OS 10.9, SN is c02*******J4i
    Since they are security printing, all the necessary ports accessing to outisdes need to be disabled in low level setting(not the ons just like turn on and off ).
    The ports including USB storage, Network and WIFI.
    I googled and found the following
    Open the /System/Library/Extensions folder.
    To remove support for USB mass storage devices, drag the following file to the Trash: IOUSBMassStorageClass.kext
    Open Terminal and enter the following command: $ sudo touch /System/Library/Extensions The touch command changes the modified date of the /System/Library/Extensions folder. When the folder has a new modified date, the Extension cache files (located in /System/Library/) are deleted and rebuilt by Mac OS X.
    Choose Finder > Secure Empty Trash to delete the file.
    Restart the system.
    I want to confirm this before sending to final user. Since I didn't have mac on hand, just wonder whether there are similar kext files for network and wifi to remove.
    Just like step 2 described.
    I would like customer to backup these files before permanently removed.
    Many thanks
    Kevin
    <Edited By Host>

    chiqui wrote:
    Is it possible to disable Internet access point and WAP as when I use WiFi some connections to WAP server of my provider are still made and I get charged. I am looking for the option not to delete it entirely from the access point list, but rather disable it as I might need connection when WiFi is not available and I want to be able to enable it as once I delete the server name and setting I won't know it.
    Is it possible to do it and how?
    You could delete WAP accesspoint. Not all providers (carriers) allow this.
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • How to do you control lower levels from the Stage?

    How to you control lower levels from the Stage?
    I have a button on the main stage and I have a symbol that has another symbol inside that I want to control that timeline or label.
    I have had success with going one level deep but not two or three deep.
    sym.getSymbol("symbol01").stop("label01");
    Any help would be great!
    Thanks.

    Can you explain the hierachy of your symbols? By this I mean, name of your symbol and any symbol inside and any symbol inside nested symbol and what event you are triggering from where?

  • How can I get low level access to netstream using OSMF?

    Hi
    I'm trying to gain access to the low level netstream underneath the hood of OSMF so that I can access its netstream.info property for reading metrics.
    I find that I am able to do this for MP4 videos but not for F4M dynamic streaming videos.
    For MP4, I was successfully able to create a VideoElement that used a CustomNetLoader class which overrided the createNetStream method to return a netstream object.
    However, for F4M, I have to use either the MediaFactory.createMediaElement(element) method or the F4MElement. The F4MElement does not allow a CustomNetLoader to be used and it seems to only accept a F4MLoader class.
    Any advice on how I can access either the netstream object or the metrics of F4M videos?
    Thanks

    ok, I finally got access to the direct netstream object - someone from Akamai gave me the answer.
    Seeing how I wasn't able to find this answer anywhere on Google, I'm going to post the solution here as there's no way I would have known this solution without someone who knew how to get direct access to the netsteam object in OSMF.
    There's a hidden class that won't show up in the code hint called org.osmf.net.NetStreamLoadTrait that you have to import.
    1) First, your media player playing controlling your MediaElement has to listen for a LoadEvent.LOAD_STATE_CHANGE event after you load the MediaElement into the media player
    mediaPlayer.addEventListener(LoadEvent.LOAD_STATE_CHANGE, onLoadStateChange);
    2) Upon LoadEvent.LOAD_STATE_CHANGE, check for a org.osmf.traits.LoadState.READY - you can only access the NetStream object when it is LoadState.READY or the netstream object will return as null.
    private function onLoadStateChange(e:LoadEvent)
                                  if(e.loadState == LoadState.READY)
    3) Once the LoadState.READY is true, you can create a datatype of NetStreamLoadTrait and type cast it from a Load trait:
    private function onLoadStateChange(e:LoadEvent)
      if(e.loadState == LoadState.READY)
         var nsLoadTrait:NetStreamLoadTrait = mediaPlayer.media.getTrait(MediaTraitType.LOAD) as NetStreamLoadTrait;
    4) Once you successfully type cast the Media Load Trait from your media into NetStreamLoadTrait, you can access the property netstream from the NetStreamLoadTrait object.
    private function onLoadStateChange(e:LoadEvent)
      if(e.loadState == LoadState.READY)
         var nsLoadTrait:NetStreamLoadTrait = mediaPlayer.media.getTrait(MediaTraitType.LOAD) as NetStreamLoadTrait;
         var ns:NetStream = nsLoadTrait.netStream;
    Hope this helps someone out there.

  • [AS3] how do i use this angle in another lower level movie clip?

    i'm tryin to use an angle from one movie clips to be part of
    an if statement in another lower level movie clip. my code is
    probably ugly but here it is. thank you in advance for the
    help

    i need to learn how to declair a variable (like angle) in a
    lower level movie clip to use it in other movie clips is this not
    correct?
    var angle:Number;
    please help

  • How to test the low level duration time ?

    see attached vi, i want to test the low level duration time, how to do that ? thanks for help !
    Attachments:
    time test.vi ‏68 KB

    Hi ateprojec…,
    your vi is not executable for me! To measure the time you can use the "Tick Count (ms)" function.
    [edit] ok, i think it´s not the time you want. Can you explain a little bit about what you mean? [/edit]
    Hope it helps.
    Mike
    Message Edited by MikeS81 on 06-17-2008 09:13 AM
    Attachments:
    Unbenannt1.PNG ‏8 KB

  • How deep test and low level format a hard drive ?

    I am looking for an program to deep test and low level format my hard disc.
    Comparable to the manufacturer programs in the windows or dos world, like IBM Drive Fitness TEST.
    1. I need an printed state conditioning diagnosis.
    2. I want to relocate the blocks and masking the bad blocks.
    3. data recovery nonrelevant
    How are bad blocks treated in Apple Disc Utility.
    Released FWB an hard disc toolkit version for mac os x?
    How can i see all S.M.A.R.T. status informations in the terminal.(beyond the resume in Apple Disc Utility)

    Your best bet is to copy anything that you want to save to another drive and then erase and format it MS-DOS FAT-32 for cross platform sharing or Guid / Mac OS Extended for Mac only use.

  • How to low level format Mega Stick 256?

    i suspect that my mega stick has a defective point in memory  because if i delete a song  and then put some news in the stick, the drive recognizes the title of the new one but plays the old one!!!! the one that was deleted
    example
    i deleted  depeche mode - song
    later i copied in  pantera - song
    ehan i try to play pantera-song, it says that in the scrolling title on screen, but sounds depeche mode!!!!!!!!!
    so now im trying to make a low level format in case something is screwed in my mega stick
    By the way.........how much warranty gives MSI for mega sticks?  

    Thanks to all for the suggestions. I'm about to give up on it, although I will try the PowerMax software recommended by Michael Black.
    And The hatter: Don't let this burn you on Neptune drives—one of my client offices has been using about 20 of them for the past couple of years now, on a daily basis, for large-scale imaging projects, and the little drives have been real champs. We're even using them to dual-boot both Intel- and PPC-based systems, and they've just been outstanding. Methinks the component failure probably cascaded down to the drive, and while yes, it *****, such things happen in any batch of components and I'd buy another Neptune today if I had the need for yet another external.
    As for Matt Broughton: S.M.A.R.T. shows no problems when the drive is connected directly to the ATA bus. But then again, I've only run into a few drives that S.M.A.R.T. has ever reliably reported on—it's still a black art, to be sure. The WikiPedia article on S.M.A.R.T. goes into more detail about its pervasive flakiness.
    For now, the drive has begun to beep about once every 2 seconds at boot. This lasts for about 30 seconds, after which the drive continues to spin but no further beeping is heard. The drive no longer shows up in Disk Utility, even as an unmounted drive/volume. So, I'll probably try it in a PC w/PowerMax just to say that I did, but beyond that, it's probably ready for disassembly as an example drive.
    80 GB—sniffle…
    Thanks again to all for your suggestions!
    Take care,
    MBJ

  • How to low level format an external hard drive on Yosemite

    I need to perform a low level format on an external hard drive as the WD external hard drive does't provide instructions for doing it on my Mac with Yosemite.

    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Apply button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

  • How to find first level WBS from Lower Level WBS

    My client is posting cost at wbs which will be at level 5 or 6 and i need to find 1st level wbs for that 5 or 6 level wbs..
    So Is there any Function module to find 1st level wbs from any lower levels...
    or any suitable code?

    Hi Sachin,
    in table PRHI you have the relationship between a WBS element and its superior level WBS element.
    For example:
    Level 1: XYZ (internal code PSPNR: 00000001)
    ..Level 2: ABC (internal code PSPNR: 00000002)
    ..Level 2: DEF (internal code PSPNR: 00000003)
    ....Level 3: PQR (internal code PSPNR: 00000004)
    ...then in table PRHI you'll have:
    PRHI-POSNR = 00000001 ... PRHI-UP = 00000000
    PRHI-POSNR = 00000002 ... PRHI-UP = 00000001
    PRHI-POSNR = 00000003 ... PRHI-UP = 00000001
    PRHI-POSNR = 00000004 ... PRHI-UP = 00000002
    ...meaning:
    WBS element XYZ is top level
    WBS element ABC depends of WBS element XYZ
    WBS element DEF depends of WBS element XYZ
    WBS element PQR depends of WBS element DEF
    Then you can iteratively (or recursively) "climb up" the structure of the project until the WBS element of level 1.
    I hope this helps. Best regards,
    Alvaro

  • How to low-level format entire drive, including partition map?

    Hi everyone,
    I have an OWC-supplied, 80 GB, ATA hard drive (OWC Neptune), which originally shipped in an external, FireWire 400 case. The drive stopped working; disassembly of the case led to the discovery of a burned trace on the Oxford bridge. While the bare drive itself has no manufacturer name, its label style and model number listed on the drive clearly show it to be a Maxtor 6Y080L0, 80 GB.
    Having removed the drive and installed it into a test Power Mac G4, the physical drive is recognized by Disk Utility (albeit with no partitions, mounted or otherwise). The drive emits "normal" power and spin-up sounds, with no clicking or other sounds that might normally indicate a failed drive. However, Disk Utility is unable to actually partition the drive—when attempted, the "Creating Partition" progress bar advances to about 1/8 of the way across, then moves no further (even if many hours are allowed to pass). Console reveals nothing as to what is stopping the format.
    Moving further, I attempted to blow away the partition map with pdisk, but encountered several read errors in the partition map itself. I even went so far as to attempt to "build" a partition map, one partition at a time, based on the settings I found on an identical drive that is functioning properly. Although this seemed semi-successful, attempting to write the partition table again resulted in a couple of errors.
    pdisk: Unable to write block 8 (Input/output error)
    pdisk: Unable to write block 9 (Input/output error)
    pdisk: Unable to write block 10 (Input/output error)
    pdisk: Unable to write block 11 (Input/output error)
    While it's entirely possible that the blown component on the FireWire bridge might have also taken out the drive, I'm not a big believer in coincidence and my thought is that the trace blew during an access of the partition map, corrupting it to the point that only a low-level format of that portion of the drive can potentially salvage it. There is no data on the hard drive I am worried about losing, but I'm not one to easily say "die" and so I'd like to be able to restore this drive to functionality, if at all possible.
    So after setting the table for you here, my questions are as follows:
    1. Is there any way to low-level format an entire drive that does not have a readable partition map? In essence, effectively returning the drive to something resembling an out-of-box, unformatted state? CLI is fine, and I'm even open to trying to throw the thing in a PC box, install Yellow Dog Linux so as to have GUI access to pdisk, etc.
    2. Does anyone have any other suggestions for me regarding this matter?
    Thanks much for the time,
    MBJ

    Thanks to all for the suggestions. I'm about to give up on it, although I will try the PowerMax software recommended by Michael Black.
    And The hatter: Don't let this burn you on Neptune drives—one of my client offices has been using about 20 of them for the past couple of years now, on a daily basis, for large-scale imaging projects, and the little drives have been real champs. We're even using them to dual-boot both Intel- and PPC-based systems, and they've just been outstanding. Methinks the component failure probably cascaded down to the drive, and while yes, it *****, such things happen in any batch of components and I'd buy another Neptune today if I had the need for yet another external.
    As for Matt Broughton: S.M.A.R.T. shows no problems when the drive is connected directly to the ATA bus. But then again, I've only run into a few drives that S.M.A.R.T. has ever reliably reported on—it's still a black art, to be sure. The WikiPedia article on S.M.A.R.T. goes into more detail about its pervasive flakiness.
    For now, the drive has begun to beep about once every 2 seconds at boot. This lasts for about 30 seconds, after which the drive continues to spin but no further beeping is heard. The drive no longer shows up in Disk Utility, even as an unmounted drive/volume. So, I'll probably try it in a PC w/PowerMax just to say that I did, but beyond that, it's probably ready for disassembly as an example drive.
    80 GB—sniffle…
    Thanks again to all for your suggestions!
    Take care,
    MBJ

  • A low-level exception occurred in Importer FastMPEG

    I am having serious problems with a wedding project. When I started it a few weeks ago it was all going ok when all of a sudden some of the files came up pixelated and blocky. I know the next question will be "can you post a clip here?". I will try to but it means showing the Bride and Groom's faces and as I have not yet shown them any of the video files I do not think it appropriate to do so here. In the meantime I am posting this here as I need some urgent help, as the project is getting very close to being overdue now.
    Technical stuff:
    Files from Sony HXR-MC2000E - SD MPEG files;
    Using Adobe Premiere CS6
    Custom built Intel i3 3.30ghz pc
    Windows 7 with Service pack installed
    When i opened the project today I got an error message: "a low-level exception occurred in Importer FastMPEG". Can anyone clue me up as to what this means please. To me, it seems like it could be related as I am importing MPEGs. I have tried re-importing the original files but they still come up as pixelated.
    Thanks again in advance for your help.

    As well as the answering the general questions here http://forums.adobe.com/message/4200840 please provide DETAILS of your computer hardware
    Especially the amount of RAM and number and distribution of hard drives and your brand/model graphics adapter and driver version
    For instance... my computer
    Asus P6 SE motherboard with Intel i7 930 CPU
    12Gig Ram and nVidia GTX 285 to use Cusa/MPE
    My 3 hard drives for video editing are configured as...
    1 - 320Gig Boot for Win7 64bit Pro and ALL program installs (2)
    2 - 320Gig data for Win7 paging swap file and video project files
    When I create a project on #2 drive, the various work files follow,
    so my boot drive is not used for the media cache folders and files
    3 - 1Terabyte data for all video files... input & output files (1)
    (1) for faster input/output with 4 drives
    - use drive 3 for all source files
    - use drive 4 for all output files
    (2) only 60Gig used, for Win7 & CS5 MC & MS Office & other smaller programs
    Search Microsoft to find out how to redirect your Windows paging swap file
    http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US
    I can't help with your error (have never had that) but posting hardware details MAY help lead to a solution
    Also, if you are editing HiDef footage, your i3 is VERY underpowered... you need an i7 for "smooth" HD editing... plus, of course, enough hard drives to spread the workload (minimum 2 - or 3 like I have)

  • Low level Hex disk edit & search util needed- suggestions please?

    low level Hex disk edit & search util needed- suggestions please?
    Maybe It's just late & I've had a bad day.... but I haven't needed a low level Hex disk edit & search utility suitable for an Intel 10.4.x Mac until now and can't seem to locate one.
    There should be plenty of free/shareware options (because they're handy and not particularly hard to write ... and every tech head needs one some time)...
    Any suggestions please?
    [I haven't bothered with the commercial stuff - like tech tool/Norton/*insert name here* Recover/repair, Something Genius etc. etc. because they are all without exception either unnecessary (just pretty shells for the underlying UNIX/X utils) useless AND greedy $-gougers, just useless, or just money gougers so I couldn't even say whether any still have a 'feature' like the old Norton Disk editor app had - but a quick look about suggest not...]
    grumble
    Any specific suggestions/links, please?
    TIA

    they are all without exception either unnecessary (just pretty shells for the underlying UNIX/X utils) useless AND greedy $-gougers, just
    useless, or just money gougers
    Such a high-esteem for fellow human beings - and
    programmers...
    You know, there are some good decent nice people
    behind those names?
    You'd be amazed at how much testing goes into a product.
    [SNIP]
    g'day Hatter...
    Yes, I know there are some good decent nice people behind those names..fellow human beings - and fellow programmers (so yes, I do know...) In previous incarnations I have 'thunk up' and developed, Marketed & supported considerably more complex Apps & systems myself - I even know some of the people you mention personally - and they are usually decent Blokes/women but normally, it isn't the programmers who make the decisions on pricing/features/support/performance/upgrade costs & cycles etc...
    My only error was, I agree, the phrase 'without exception' - but (mainly) only because I haven't bought/tested & used all of them very very recently. So I offer my apologies to those to whom my remarks should not apply (long, late night/early morning frustration...)
    However, I also offer a few simple pertinent examples:
    One 'top name' Utility company had a 'save your Mac HD' product on the market for some time that was almost guaranteed to TRASH it irretrievably but did NOT say so - nor did they help or compensate those they harmed.
    Several are selling what amount to simple, pretty, GUI shells for 'free' or OS-included command line tools - no more, no less but do NOT say so and are asking good money for the 'software'.
    Many are asking ridiculous prices for "regular upgrades" so you can keep their tool current with your Mac OS - one wants US$100/year for it, another, $15 per u/g, others, US$25 or $40 per u/g; one asks 'only' $10 - and these 'upgrades' are happening 3,4,5,6 times per year and are necessary for the Marketing company to keep their product Saleable to new purchasers and new Macs (as well as for important Bug Fixes - and only co-incidentally to keep it performing with your current Mac and OS - which is what you paid them for in the first place).
    I won't pay for a product 3, 6 or 9 times and I won't advise my clients to: It's not unreasonable for a person to expect a 'sensible lifetime/currency' of Product X for Computer Y - say 3 years (e.g. AppleCare). I wouldn't object to paying for an "upgrade" at that point - IF it's worth the money.
    Software is Waaay too expensive in many cases and is simply inviting 'piracy' - from people who have already PAID for the product: sadly, they are killing their own Gooses.
    Seriously, one product costs ca. US$100 to Buy in the first place
    To keep it actually working for you costs about the same again Per Year - a 3 year 'sensible lifetime' or 'currency' cost of US$300 or $400! [That'll buy a lot of 'bare drives' to put in a handy Firewire case for automatic backups in Background, differential backups etc. and other simple practices which render this product type largely unnecessary ].
    For what? A relatively simple set of utilities which would actually cost the company involved less than $5 total each - over 3 years - to make available to existing ( or 'current') owners. [Applecare 'complete' Hardware and Software warranty & support on a US$2000 iMac - which includes Tech Tools Pro Deluxe or somesuch costs about US$165 for 3 years. Total.]
    Having designed, developed, Marketed, supported & maintained more complex Applications to/for a sizeable user-base (in US terms) over multiple complete Series of Product 'life-cycles' - regular Updates and all, I think I know where the pirates are.
    These practices have been rampant in the MSWindows™ market for a longtime. It's a real shame to see it in the Mac world.
    I have all the esteem in the world for those fellow human beings who deserve such - and programmers who are 'good decent nice people'.
    I have none to spare for monopolists, 'exploitationists' or any of those who take unfair/unreasonable advantage of their fellow human beings - AND of programmers who are 'good decent nice people' (like, say, ME... .
    In any event, as I said: they are "killing their Gooses": I know of at least 6 software companies which went this route a while back. All are dead or dying.
    Thank you for your help - and the opportunity to apologise for 'mis-speaking'.
    all the best,
    orig g4 733, many others thru (the luvly) Macintels     New & old Macs, Wintels, MacIntels, other systems...

Maybe you are looking for

  • OpenScript: Which files to put under Version Control?

    Hi, According to JB's description of [how to enable Subversion|https://forums.oracle.com/forums/thread.jspa?messageID=10677356] for OpenScript, I have now an active version control. The next question is now: which files I should put under version con

  • Why I cannot Activate my Iphone4s with DTAC simcard.

    My dad bought Iphone4s of America and send it to me. My father that I bought without a contract worth about $ 700, but when I applied in Thailand. I'm not available. I know how to use it. This phone normally. This is IMEI for my IPHONE - 013072007395

  • Poker on itouch??

    Hi friends, Can you please tell me where I may be able to get free poker and similar games for the itouch 8G?? Regards

  • How to get prefilled drop down list in Adobe form from WebDynpro context

    Hi All, We all know that we can have dropdown list in webdynpro which can be automatically populated by the context node collection. How can we have the same functionality in Adobe form drop down list. I tried to bind the node attribute to drop down

  • Can't locate a way to unistall tool bars

    I want to uninstall: 1) yahoo toolbar 2) Oryte toolbar 3) msn games toolbar I am unable to do so. I.E. it is suggested that I use a pencil icon to uninstall yahoo toolbar, but it is not shown on toolbar. I can't locate the files in the program files