In Codename One, why can I not get FileInputStream to import or compile?

后端 未结 2 1169
猫巷女王i
猫巷女王i 2021-01-28 07:49

Here are my imports:

import com.codename1.ui.*;
import com.codename1.ui.util.*;
import com.codename1.ui.plaf.*;
import com.codename1.ui.events.*;
import com.code         


        
2条回答
  •  既然无缘
    2021-01-28 08:15

    It looks like Codename One has omitted that class - and others, I suspect.

    Judging by the documentation, I suspect you want to use the com.codename1.io.FileSystemStorage class and its openInputStream method.

    You may well want to watch the video on storing data to persistent storage too.

提交回复
热议问题