Important question for reading File

Good morning
i need help...
any one know 1 class for oper all document?
example:
http:sitoclient.com/?file?filename.txt
or
/home/class/filename.txt
i need 1 class for open file in all mode
where is this class?
one class for read file in url or in absolute path
Message was edited by:
mirko81

ok i know this class but i not know where insert Java.net in my code....
and i need use class BufferReader for other problem...
where insert Java.net.URL ??
String keyCode = "";
BufferedReader file = new BufferedReader(new FileReader(keyFile));
               if(file.read() > 0)
                    int i = 0;
                    String appKey = file.readLine();
                    for(i=0;i<500;i++)
                         char c = appKey.charAt(0);
                         if(c==' '| c=='#')
                              appKey = file.readLine();
                         else
                              keyCode = keyCode + appKey;
                              appKey= file.readLine();
                              char cd = appKey.charAt(0);
                              if(cd==' '| cd=='#')break;
               else
                    System.out.println("File corrotto o non presente");
               }

Similar Messages

  • A very important question for every After Effects user

    a very important question for every After Effects user, from product manager Steve Forde:
    http://adobe.ly/1exI6tI

    Tom Daigon Great idea everybody! Encourage Adobe to do ONLY ONE THING with AE for 2014. Since theres not a heck of a lot of development that can be done on the present foundation, they can really stretch the rental scheme out for many years.And once you get used to the concept, every year they will do ONE THING to placate you. So now they have you swallowing no "ownership" of software and limited development. 

  • Import error for .prproj files

    so i've just touched adobe mc CS4 for the first time, my church is allowing me to use the studio/editing room while not being used during the day at certain times. i am compiling a dvd of my wedding to make it more proffessional than the previously made vesion (which looks very amateur with a basic template menue, and so on). i plan to use some flash on the menus and maybe even include an easter egg as well. anyway, with the other program i just imported the media from the camera (which is an HDD camera that records everything into .mod files) i've had a .mod converter for quite some time so those are already converted.i saved them on an external HDD, i created a folder on the computer and just dragged and dropped the folder onto there.
    anyway, with my old program (cyberlink power producer/director) i'd just import the media into the editor, make the edits and cuts and save the project. then import the project into the author program to make teh menus and burn it. when i first pulled up the program to get acclimated to it, i decided to run through a very quick dry run of a full start to stop dvd burn of a very small video. i did a short series of clips and edits in Premiere (the oevr all project is like 6 minutes long). saved the project, and when i go to import the project into Encore it reads "the software that's used to decode the media is not available on this  system""adobe encore the software that's used to decode the media is not  available on this system. installing the correct decoders for the file  you are working with may help correct the problem."
    i can encode the project as an mpeg, and it imports just fine. i can import the individual clips that make up the project into encore, they work fine as well.but if i import the .prproj file, it gives me the error. so whats the deal? can you just drag and drop these files in like this? i'm just trying to keep from constantly encoding the files after 3 encodes, i'm affraid the quality of the video will suffer too much degradation, so i'm trying to get it to where i can just import the project, and then at the end burn the project to dvd.
    i figured it better to ask on here, this way i look like a fool anonymously, and not look like a fool to people i actually know. heh.

    PrPro will come to you. It has fewer "automations," and "big-button" solutions, than PowerDirector (and Magix and PrE), but with that comes power!
    It is the same with Encore vs the limited authoring capabilities of PowerDirector, Magix, Roxio and PrE. Again, more hand-work, but oh, so much more power!
    Can you tell that I am a control freak, and do not mind getting my hands dirty to access the power?
    There are a few things that Encore cannot do, that programs like Sonic Scenarist can do, but there are usually workarounds, either in the design, or in the implementation, that will get you "there," or close.
    I strongly recommend that any new user to Encore purchase and read Jeff Bellune's excellent book, The Focal Easy Guide to Adobe EncoreDVD 2.0, Focal Press. That book covers everything that Encore can do, with two current exceptions - Adobe Dynamic Link (CS4 version) and BD authoring. Both of those were added after the book and EncoreDVD 2.0, were released. However, the Help files cover both of those newer additions well.
    Along with the fundamentals of Encore, Jeff covers all sorts of tricks and tips for getting more out of Encore, than the DVD-specs. actually allow. Obviously, he cannot break those rules, though he CAN help you create the illusion that the rules HAVE been broken. The user will swear that they just saw things, that are impossible, based on the DVD-specs., which are very limiting. Hey, it IS "smoke and mirrors," but if the user is fooled, you have succeeded, right?
    Good luck, and when you get around to adding some "tricks" to your DVD-Videos, post back. I'd suggest a new thread, so that other users can benefit from the new title, and so that users know that this is a new question. You will find that there is not too much, that someone here has not done, one way, or another. Oh, there ARE some limitations, where there is no good way to "bend" those DVD-specs., but you'll be surprised at what one can "bend."
    Happy authoring,
    Hunt

  • AVI import fails for older files but works in iMovie

    I have two sets of AVI files, one from early 2000 and newer post 2008.
    Both groups of files import fine into iMovie 11.
    however, only the newer group imports into FCP X.
    I can convert the older files to MOV using QT, but this won't work well for many files.
    Seems if iMovie can read, so should FCP X.

    I have had a similar problem, where maye 8 out of 10 AVI format moves will download into iPhoto, but the rest simply never get there. I did get 107 out of 109 files OK but have seen worse. I can tell you about which camera it is, how I connect and so on, but first, this:
    A small sidebar in the Bugs & Fixes column of the April, 2007 Macworld magazine (see page 89) mentions that: "the likely cause is a problematic third-party QuickTime Plug-in." and advises the reader to check for and remove plug-ins not installed by OSX.
    I took the same camera and imported all 109 pics from my camera on a separate account of the same machine (20" i-mac but I don't think this is relevant) and got all 109 f 109 files just fine.
    So, I think "problematic third party QT plug-ins may be a good call. Need to investigate this some more, but its a flaky problem and Macs are supposed to "just plain work".

  • Specifying byte stream type for Read File with Type Descriptor

    Hi.
    I'm trying to write a VI that reads an image file format that can have
    different datatypes. What I have so far is that I open the file, read
    the header, and get the width, height, number of frames, and datatype.
    I calculate number of pixels by nrows*ncols*nframes with no problem,
    but I'm not sure how to tell Read File the correct datatype to read
    the data into.
    I tried using a Case structure where I have a Read File in each case
    with the correct type constant as input for that case. The problem is
    that the tunnel graduates the datatype to the highest representation.
    I found in Application Note 154 the discussion about Type Descriptors.
    Is there a way to generate a Type Descriptor and output it from a C
    ase
    structure? I tried just returning the value (e.g. 0x0402 for a Word),
    but Read File will just see that the byte stream type is a uint32.
    Is there any other way to do this?
    Thanks for any help.

    I converted the code to LabVIEW 6.1 for you and attached it below.
    Don't worry about being a newbie. We all start there. Keep asking this type of question and you won't stay there long.
    As you are discovering, being strictly typed means that you must rewrite code even for a simple data type change, or convert everything to the same data type first. For image data, conversion can result in a lot of extra space being wasted. Use a modified version of the GLV_WaveformBuffer.vi to hold your data. Use the array functions, which operate inline, to add to and delete the data wires in the buffer. This allows you to save several different data types. You will need several different inputs and outputs to handle these data types. I ha
    ve also attached a similar file created for exactly the problem you have - storing arrays of different data types (data from NI-SCOPE devices, in this case - can be float, I8, I16, or I32).
    Routines that take any type work in one of two ways. LabVIEW primitives, such as plus and minus operators, work by figuring out the type and doing the right thing in the C code layer of the LabVIEW environment. Users of LabVIEW can't do this. Users can make polymorphic VIs. Polymorphic VIs are actually a single VI for every data type that are referenced by a "wrapper", the polymorphic VI. Users still need to write a different VI for every data type they need.
    Take home message - if you need to work with different data types, you will need to rewrite your code for every data type or convert your data to a common data type. Polymorphic VIs and case statements are your friend.
    Let me know if you need more help.
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    GigaLabVIEW61.zip ‏362 KB
    sfpScpChan_Waveform_Buffer.zip ‏74 KB

  • Question for Reader.read() !

    When I read the documentation for Reader.read(), I am not sure if I understand it right or not.
    public int read():
    Read a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached.
    Depends on what it saying, I think when read() is called, it will always move its cursor to the next, read next character, if it is possible.
    Am I right? Any code to prove that? I am trying to do it in my own, if I get it, I will post to here too.

    Yeah you're right.
    If you use a Reader to read from a file (FileReader), then only three events can happen :
    1) there is another character availbale, so read() reads it and moves the cursor to the next character.
    2) there are no other character in the stream, so the function returns -1.
    3) there is a problem with the file system and an IOException is throwed.
    So you can read a file without creating a new thread. In this case, read() never blocks. But there are other sorts of Readers.
    For exemple, the PipedReader reads its data from a pipe. The pipe you read from can be empty but will generate no exception or end of stream events. In this case, read() will block until data is available. In most case, you will need to create a new thread to read from a pipe without blocking all your application.
    So the answer about wether read() block or not depends in fact of the actuel Channel used, and you need to read the documentation of each of these Channels (FileReader, PipedReader, etc...).
    Hope this helps.
    Matthieu

  • Exact import settings for .mov files via MPEG Streamclip?

    Ok, as I mentioned in this other thread , I'm looking to import some files recorded at an odd resolution into FCE.
    Resizing my 512x288 files to 720x480 looks like it works, as well as with my 640x480 ones (don't know how it'll ultimately mess with the quality)... but I did do a test using some footage from 3 different video sources with different native resoultions, a)720x480 Sony DV Cam, b) 512x288 captured by helmet cam on Archos PMA 430, and c) 640x480 captured on Canon SD600, as well as .jpeg photos at 640x480 res.
    I changed the odd sizes (Archos & Canon) to 720x480 using MPEG Streamclip, resampling the sound uncompressed at 48 khz, using the Apple DV/DVCPRO NTSC compression option. Importing these files into FCE, I mixed them and the Sony standard footage, and a few pictures up on a timeline, rendered it and exported it to a QT file, then burnt a CD. It appears to have worked to my satisfaction.
    My question is, before I go and convert about 60 5-10 minute clips to this 720x480 resolution for use in a full length documentary, are there any settings I should be ticking off on the MPEG Streamclip interface to maximize the likelihood that the final project will work as well as the test did?
    Below are the options I selected in the test, which seemed to work:
    MPEG STREAMCLIP
    Compression: Apple DV/DVCPRO-NTSC
    Quality: 100%
    Sound: Uncompressed Stereo 48 KHZ
    Frame Size: 720x480
    Frame Rate: 29.97
    Checked boxes for:
    -Frame Blending
    -Better Downscaling
    -Interlaced Scaling
    Zoom: 100%
    X/Y: 1
    Center: 0,0
    Field Dominance: Upper field first
    That's about it. I tried doing similar conversions in a trial version of DIVX Converter pro, but the quality was noticibly lower than in MPEG streamclip. Maybe I just had the wrong settings in it.
    Anyway, Tom Wolsky has mostly got me on the right track in the last post "...so the material needs to be a .mov QuickTime file in DV NTSC, at 29.97fps, audio should be Linear PCM with a sample rate of 48KHz, and frame resolution of 720x480 using the CCIR601 digital video aspect ratio... be warned you're scaling up a very, very heavily compressed video stream, so it's going to look less than optimal when you make it DV. I can't believe they can do 192kbps at that frame rate, when DV, which is heavily compressed as well, is 3.5MB/sec."
    I have no idea if what I described in my test is heavily compressed or not, so couldn't really say how the settings I mentioned above affect Tom's latter advice.
    Anyway, any help would be welcome before I encode all these files. Thanks.
    iMac 17-inch 1.83GHz Intel Core Duo   Mac OS X (10.4)  

    I'm kind of confused because the only settings I could find on the Handycam for audio are 12 khz and 16 khz, and though I think I filmed them at 12, I've captured the footage at both within FCE... I'm not sure either have shown any probs when imported at 48 khz as yet. Not sure if that's because they are a multiple of 48 or I just got lucky. Either way, 1) does the audio bit rate the footage was captured at (12 khz) change to 16 if changed on the camcorder (or is it solely what the original was filmed in, period) prior to capture on FCE, 2) and if so or if not, how serious of a problem will it pose, if I do nothing and keep the FCE settings at the normal NTSC 48khz, in later stages of production considering there will be a lengthy timeline?
    iMac 17-inch 1.83GHz Intel Core Duo Mac OS X (10.4)

  • Pre-sales question for IPOD (file extensions)

    I would like to buy my mother a IPOD Nano 2gb for her upcoming birthday, but have a quick question on the way it formats the files on my PC.
    Do I HAVE to have Itunes or any other software on my pc in order to place .mp3's on the IPOD?
    If I have to have software in order to place songs on the IPOD, will it change anything on my PC, for an example, will it change any of my file extensions or file names of any of my music from .mp3 to .???
    I have a DELL mp3 player and I love how I can just throw any song at it from Microsoft Window's File Explorer, and it'll play it.. I've never used or messed around with an ipod.
    Thanks in advanced,
    chris

    Do I HAVE to have Itunes or any other software on my pc in order to place .mp3's on the IPOD?
    Yes.
    If I have to have software in order to place songs on the IPOD, will it change anything on my PC, for an example, will it change any of my file extensions or file names of any of my music from .mp3 to .???
    iTunes will not change the format of your music unless you explictly tell it to do so, or import unprotected WMA files into iTunes under Windows, in which case duplicates will be created in a format which is directly usable in iTunes. The Mac OS X version of iTunes will not handle WMA songs.
    (20414)

  • Important Questions for MAC AMATEUR photographers - is it worth it to change what works

    Greetings,
    I have been following this products evolution.
    Currently I have a system that works very well. After a shoot I follow the following workflow.
    1) BAck up originals on a external drive.
    2) Import into Apple iphoto
    3) Preview and set keywords and albums with iphoto
    4) Edit in Photoshop CS2
    5) Share with pbase or Picasa online albums
    6) Backup the iphoto directories regularly
    The idea of the enhanced digital asset management capabilities with Lightroom is attractive but I question how much value it would add to my current workflow. Some questions that is raises are:
    1) Lightroom performances on a imac G5 with 2GB of RAM
    2) Should I use the Lightroom library structures or good old physical directories which are nice if the MAC is down and I want to use a backup windows computer
    3) Still not sure of the best practices for maintaining and backing up lightroom libraries
    Any comments or suggestions would be welcome.
    Thanks!!!!

    To answer your points and I use an iMca G5 with 1.5gb ram.
    1) Lightroom performances on a imac G5 with 2GB of RAM
    Mine goes really well, pretty fast, certainly fast enough for me with Nikon D200 files mostly.
    2) Should I use the Lightroom library structures or good old physical directories which are nice if the MAC is down and I want to use a backup windows computer
    I would use physical structures as I find the iPhoto ones rather cumbersome/difficult to use, which is one of the reasons why I stoppped using iPhoto!! Another being I like the LR Develop and Print modules.
    3) Still not sure of the best practices for maintaining and backing up lightroom libraries
    Ihave LR set to back up the library evry day and keep the latest two, deleting the rest.
    Files ought to be backed up somewhere else. I put the original raw files on DVD too and import to LR as DNG. If the crunch came I can always go back to the raw!!
    Hope this helps and most of all:
    Enjoy LR!!!

  • Important Question About Moving Files

    Aloha DW Community
    I need help/confirmation on this before i do it. I have
    inherrited the website from hell; that meaning the folders on my
    computer and on the server are very unorganized. There are images
    all over the place, in places they just should not be stored. i am
    getting ready to switch to a new service provider for the site so i
    want to start as fresh as possible. i have already downloaded the
    whole site from the server to my local computer. i have gone
    through and deleted all the old files that are no longer needed.
    now before i upload this site to the new server i want to collect
    all the images that are spread about and place them in the same
    folder. my question is this - if i gather all the images together
    and upload the site, will dreamweaver correct all the link paqths
    that have been switched around by me moving all the pictures? i
    know DW does this, but i am not sure if it will do it on such a
    large scale.
    if you know the answer, please let me know.
    thank you in advance
    all the best to you
    e~

    Do all of your organizational moves within DW's Files panel.
    You should be
    fine.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "sinewave zero" <[email protected]> wrote in
    message
    news:fcf30e$s5h$[email protected]..
    > Aloha DW Community
    >
    > I need help/confirmation on this before i do it. I have
    inherrited the
    > website
    > from hell; that meaning the folders on my computer and
    on the server are
    > very
    > unorganized. There are images all over the place, in
    places they just
    > should
    > not be stored. i am getting ready to switch to a new
    service provider for
    > the
    > site so i want to start as fresh as possible. i have
    already downloaded
    > the
    > whole site from the server to my local computer. i have
    gone through and
    > deleted all the old files that are no longer needed. now
    before i upload
    > this
    > site to the new server i want to collect all the images
    that are spread
    > about
    > and place them in the same folder. my question is this -
    if i gather all
    > the
    > images together and upload the site, will dreamweaver
    correct all the link
    > paqths that have been switched around by me moving all
    the pictures? i
    > know DW
    > does this, but i am not sure if it will do it on such a
    large scale.
    >
    > if you know the answer, please let me know.
    >
    > thank you in advance
    >
    > all the best to you
    >
    > e~
    >

  • Premier CS6 importer error for mxf files

    I can't import any mxf file into Premier CS6. I don't really understand this situation.
    I have intalled Canopus.HQ.CODEC.v6.0.7 and for example my vlc media player plays fine all of my mxf files.
    Can anybody help me solve this issue?
    Thanks

    Probably because they want to be able to investigate the exact type of mxf file it actually is. Because I edit mxf files with Premiere cs6 fairly regularly and I never have issues. So obivously something is either different with that specific type of mxf or something is corrupted which I doubt. Could you upload a small test file? So we can see if it will import into Premiere on our systems. Also since you're saying they digitized them using a canopus capture device/card and or software I'm thinking you may need that software and or the specific codec installed on your system in order to actually make use of that type of file.
    I'd recommend downloading the entire "canopus playback codec pack". This should solve your issue. However I have no way to promise it will, I'm fairly sure it should work... Simply google "Canopus Playback Codec Pack" and the first result will give you the info your need to get the full playback package. I'm guessing this your problem.

  • JVC GY-HM100u Import issues for MOV files

    We shot the most recent video in the MOV format using our JVC
    camera.  The native files only open with audio in Premiere CS5.
    When trying to open the xml files, we keep getting
    "The importer reported a generic error."  What codecs do we need to fix this for quicktime or what
    other work arounds are available?
    Thanks

    <sigh>
    That's because MP4 and MOV are the CONTAINERS, not the codec, and the containers are not the same. It's an XDCAM EX 35Mbps camera, first and foremost--this is a specific codec used to compress the captured images. Then, they are stuffed into either an MP4 box or an MOV box; you use the MOV box when you're working on a Mac with FCP, and you use the MP4 box when you want to preserve your sanity (and mine, apparently). What is inside those boxes is EXACTLY the same.
    You need to use MP4--even though it's the same codec and content--because Apple does not provide the decoding components ("box cutter") for XDCAM EX MOVs on the Windows version of QuickTime, or on any Mac that does not have FCP installed. QuickTime on Windows can't open the box, Premiere Pro cannot open the box, and pretty much everything else on the PC cannot open the box. However, the program I linked to earlier can open the MOV box, and will put the video into a different box (actually, an MPG box, not an MP4 box, but it really doesn't matter). This is no different than moving your Levis from one suitcase to another; they don't suddenly become a polyester leisure suit.
    If you're hell-bent on using the MOV container, I won't try to convince you any longer: plunk down the cash for the Calibrated XD Decode QuickTime components and get on with it.

  • Question concerning read file

    Hello All,
    I wrote a program to read a file. When I compile and run the file it runs fine. I take this same code and try to read the file using a JSP page and now my error is file cannot be found, can some one tell be what's wrong here. I'm just calling the class from the JSP page nothing more, and I'm getting File not found although the path was specified correctly and the program worked as a stand alone using Main before.
    Please any help?
    KT

    I want this program to at least read the file from my JSP page
    Here is part of the source code for the Java file
    1)
    DataInputStream inFile=
                 new DataInputStream(
                    new BufferedInputStream(
                   new FileInputStream("Data_452SY2.txt")));
              DataOutputStream outFile = new DataOutputStream(
                               new FileOutputStream("test2.xls"));
              String readDetail_topLayer;2)
    Here is the JSP page (not doing anything yet) just accepting the java file
    <%@page import="dev.*" %>
    <%@page session="true" language="java" import="java.io.*" import="java.util.*" %>
    <jsp:useBean id="wagerhist" scope="page" class="dev.RoundDetail2" />
    3) the rest is just HTML code
    the path for the inoput file ("Data_452SY2.txt") is in the same directory as the class file, but I'm getting file not found exception
    any help?

  • SAP BO DI 3.2 How to import definition for flat files

    Hi All,
    I have several MS Access database with their respective tables , but Im needing now to import the tables structure/definitions of their tables as Flat Files definitions inside SAP BO DI 3.2 , is there an automatically way to do this without using the Flat File Editor?
    Thanks in advance!

    Hi,
    if you have the data in an Access database can you not just connect via ODBC to get the data?  This would also allow you to get the column metadata easily.
    If you are going to export the data from Access to flat files then do this first and then use the Flat File editor to create each file in turn, as long as you have access to the file then you can open it in the file editor and Designer will import the schema for you.
    regards,
    Adrian

  • Importing Audio for ppt files in Captivate

    How do you import audio and sync over multiple powerpoint slides? I'm using Captivate 6

    Welcome,
    But this is a Captivate forum, not a PPT forum.  If you use Captivate only for converting ppt-slides maybe a plug-in would be a better idea (Adobe Presenter, iSpring).
    Record the audio in Captivate, using the Audio menu. You'll get one audio clip for each slide. And then you use the timeline to synchronize the appearance of objects. But if you are importing PPT-slides that have already animations and timings, you have to know that in CP you end up with a movie file, a recording of the PPT-slide, so synchronizing with a movie is not that easy as you perhaps know. While recording the audio you can watch the movie play in CP.
    Lilybiri

Maybe you are looking for

  • How can I replace a damaged Image Capture in locked Lion Application folder?

    I am running a MacBook Air on 10.7.2. Image Capture is "damaged or incomplete" and cannot be opened. I have a copy of IC from my other mac running Lion, but cannot copy it into the Apps folder on my MacBook Air because IC cannot be modified or delete

  • Need it's Urgent- PA Help

    Hi Friends,      I need a Resume on HR-PA,PT and PD.      My requirement is Urgent Friends.     If u have content and Bullets for resume then     pls send it to [email protected]     Thanks in Advance. Regards, Manian.

  • Screen shot image name

    When 10.6 was introduced, the screen shot - (CMD-SHIFT-3) changed from an image name that was numbered numerically to a screen shot name with the date and time. This change is not very usefull. Does anyone know if there is a way in 10.6.1 to change i

  • RAM - on app server x32

    Environment: Oracle App server X32 on RedHat X64 with 32G RAM My question is : APP Server it will user only 4G ram and 28 is unuse?

  • HT1418 use 2 iphones,with 1 computer,or ipad

    use 2 iphones with i computer,oripad