---
title: "Interface InputConnection"
---

`package javax.microedition.io`

```text
public InputStream openInputStream()
                            throws IOException
```

## 설명

**Returns:**
- 입력 스트림

**Throws:**
- `IOException` - I/O 오류가 발생한 경우

### openDataInputStream

**Returns:**
- 입력 스트림

**Throws:**
- `IOException` - I/O 오류가 발생한 경우

## 메서드 요약

- `DataInputStream openDataInputStream ()` — 연결의 데이터 입력 스트림을 열고 반환합니다.
- `InputStream openInputStream ()` — 연결의 입력 스트림을 열고 반환합니다.

## 메서드 상세

### openInputStream

```java
public InputStream openInputStream()
                            throws IOException
```

**Returns:**
- 입력 스트림

**Throws:**
- `IOException` - I/O 오류가 발생한 경우

### openDataInputStream

```java
public DataInputStream openDataInputStream()
                                    throws IOException
```

**Returns:**
- 입력 스트림

**Throws:**
- `IOException` - I/O 오류가 발생한 경우
